Browse Source
Merge pull request #650 from acsone/10.0-fix-base_partner_sequence
[10.0][FIX] Fix issue during write on base_partner_sequence
pull/604/merge
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|