From 4d35891d66def1c07b1835636e606c3728d56c3a Mon Sep 17 00:00:00 2001 From: steveferry Date: Mon, 29 Jun 2015 13:32:00 +0200 Subject: [PATCH] FIX --- partner_firstname/res_user.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/partner_firstname/res_user.py b/partner_firstname/res_user.py index 4a47241b1..ec71f526b 100644 --- a/partner_firstname/res_user.py +++ b/partner_firstname/res_user.py @@ -42,8 +42,7 @@ class ResUsers(orm.Model): res_partner = self.pool.get('res.partner') partner = res_partner.browse(cr, user, vals2['partner_id'], context) - if partner.lastname: - vals2['lastname'] = partner.lastname + vals2['lastname'] = partner.lastname elif 'login' in vals and 'lastname' not in vals: vals2['lastname'] = vals2['login'] return super(ResUsers, self).create(cr, user, vals2, context=context)