Skip to content

Commit

Permalink
[REM] Jurisdiccion constrains in res.company.jurisdiction.padron
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelaxcelere committed Oct 13, 2023
1 parent 34a84de commit b2145c8
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ class ResCompanyJurisdictionPadron(models.Model):
required=True,
)

@api.constrains('jurisdiction_id')
def check_jurisdiction_id(self):
arba_tag = self.env.ref('l10n_ar_ux.tag_tax_jurisdiccion_902')
for rec in self:
if rec.jurisdiction_id != arba_tag:
raise ValidationError("El padron para (%s) no está implementado." % rec.jurisdiction_id.name)

@api.depends('company_id', 'jurisdiction_id')
def name_get(self):
res = []
Expand Down

0 comments on commit b2145c8

Please sign in to comment.