diff --git a/partner_vat_unique/i18n/es.po b/partner_vat_unique/i18n/es.po index ce85a5715d5..2702bab0411 100644 --- a/partner_vat_unique/i18n/es.po +++ b/partner_vat_unique/i18n/es.po @@ -45,7 +45,7 @@ msgstr "" #: code:addons/partner_vat_unique/models/res_partner.py:0 #, python-format msgid "The VAT %s already exists in another partner." -msgstr "El NIF %s debe de ser Ășnico por empresa." +msgstr "El Rut %s debe de ser Ășnico por empresa." #~ msgid "" #~ "The Tax Identification Number. Complete it if the contact is subjected to " diff --git a/partner_vat_unique/models/res_partner.py b/partner_vat_unique/models/res_partner.py index 168019bc16a..89235b58fcf 100644 --- a/partner_vat_unique/models/res_partner.py +++ b/partner_vat_unique/models/res_partner.py @@ -20,9 +20,12 @@ 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 if test_condition: continue if record.same_vat_partner_id: raise ValidationError( _("The VAT %s already exists in another partner.") % record.vat - ) + )