Browse Source

Fix Travis error on partner_changeset

pull/289/head
Antonio Espinosa 9 years ago
parent
commit
d252041718
  1. 4
      partner_firstname/models/res_partner.py

4
partner_firstname/models/res_partner.py

@ -245,5 +245,5 @@ class ResPartner(models.Model):
name = vals.get('name') name = vals.get('name')
if name and all(name == partner.name for partner in self): if name and all(name == partner.name for partner in self):
vals.pop('name', None) vals.pop('name', None)
if vals:
return super(ResPartner, self).write(vals)
this = self.sudo() if not vals else self
return super(ResPartner, this).write(vals)
Loading…
Cancel
Save