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",