diff --git a/partner_vat_unique/models/res_partner.py b/partner_vat_unique/models/res_partner.py index 89235b58fcf..0bcf97dc965 100644 --- a/partner_vat_unique/models/res_partner.py +++ b/partner_vat_unique/models/res_partner.py @@ -20,9 +20,11 @@ def _check_vat_unique(self): test_condition = config["test_enable"] and not self.env.context.get( "test_vat" ) - rut= '66666666-6' - if record.vat == rut: - test_condition =True + rut = {'66666666-6', 'xaxx010101000', 'XEXX010101000'} + rut_set = set(rut) # Create a set directly from the dictionary elements + + if record.vat in rut_set: + test_condition = True if test_condition: continue if record.same_vat_partner_id: