Skip to content

Commit

Permalink
[FIX] t5177 modificaciones para vat mexicano
Browse files Browse the repository at this point in the history
  • Loading branch information
gam-bmya committed May 23, 2024
1 parent 5301caa commit c64ccaf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions partner_vat_unique/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c64ccaf

Please sign in to comment.