From 231ee55754435d17f1de35dec9d8eb240ac4a2f6 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Wed, 7 Oct 2020 10:17:45 +0200 Subject: [PATCH] [FIX][13.0] partner_identification id number check --- partner_identification/models/res_partner_id_number.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/partner_identification/models/res_partner_id_number.py b/partner_identification/models/res_partner_id_number.py index b3d74e3b8..c5c3d7fe3 100644 --- a/partner_identification/models/res_partner_id_number.py +++ b/partner_identification/models/res_partner_id_number.py @@ -17,7 +17,8 @@ class ResPartnerIdNumber(models.Model): @api.constrains("name", "category_id") def validate_id_number(self): - self.category_id.validate_id_number(self) + for record in self: + record.category_id.validate_id_number(record) name = fields.Char( string="ID Number",