From e8ec4bb928b7804596ac45138acebe4d35c75127 Mon Sep 17 00:00:00 2001 From: steveferry Date: Wed, 10 Jun 2015 14:46:05 +0200 Subject: [PATCH] Fix PEP8 error --- partner_firstname/res_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner_firstname/res_user.py b/partner_firstname/res_user.py index 18d2d5930..4a47241b1 100644 --- a/partner_firstname/res_user.py +++ b/partner_firstname/res_user.py @@ -40,7 +40,7 @@ class ResUsers(orm.Model): vals2['lastname'] = vals2['name'] elif 'lastname' not in vals and 'partner_id' in vals: res_partner = self.pool.get('res.partner') - partner = res_partner.browse(cr, user, vals2['partner_id'], + partner = res_partner.browse(cr, user, vals2['partner_id'], context) if partner.lastname: vals2['lastname'] = partner.lastname