Browse Source

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

pull/487/head
Yannick Vaucher 12 years ago
committed by Enric Tobella
parent
commit
bde32e02b7
  1. 2
      partner_firstname/res_user.py

2
partner_firstname/res_user.py

@ -27,6 +27,6 @@ class ResUsers(orm.Model):
_inherit = 'res.users' _inherit = 'res.users'
def create(self, cursor, uid, vals, context=None): 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'] vals['name'] = vals['login']
return super(ResUsers, self).create(cursor, uid, vals, context=context) return super(ResUsers, self).create(cursor, uid, vals, context=context)
Loading…
Cancel
Save