Browse Source

[10.0][FIX] Fix issue during write

pull/650/head
François Honoré 6 years ago
parent
commit
85a5ac1a3c
  1. 2
      base_partner_sequence/models/partner.py

2
base_partner_sequence/models/partner.py

@ -52,7 +52,7 @@ class ResPartner(models.Model):
for partner in self:
if not vals.get('ref') and partner._needsRef(vals) and \
not partner.ref:
vals['ref'] = self._get_next_ref(vals=vals)
vals['ref'] = partner._get_next_ref(vals=vals)
super(ResPartner, partner).write(vals)
return True

Loading…
Cancel
Save