Browse Source

[IMP] partner_firstname - less steps in partner vals(e)

pull/2/head
Yannick Vaucher 12 years ago
parent
commit
115ff5f834
  1. 2
      partner_firstname/res_user.py

2
partner_firstname/res_user.py

@ -27,6 +27,6 @@ class ResUsers(orm.Model):
_inherit = 'res.users'
def create(self, cursor, uid, vals, context=None):
if not 'name' in vals or not vals['name']:
if not vals.get('name'):
vals['name'] = vals['login']
return super(ResUsers, self).create(cursor, uid, vals, context=context)
Loading…
Cancel
Save