From 85a5ac1a3c603cfe32b6785aef46a8dcc05cc380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Honor=C3=A9?= Date: Mon, 12 Nov 2018 10:59:03 +0100 Subject: [PATCH] [10.0][FIX] Fix issue during write --- base_partner_sequence/models/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_partner_sequence/models/partner.py b/base_partner_sequence/models/partner.py index 9ddb630ca..d7dc81280 100644 --- a/base_partner_sequence/models/partner.py +++ b/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