[MIG] account_tax_balance: Migration to 15.0

This commit is contained in:
Valentin Vinagre Urteaga
2021-12-10 10:22:24 +01:00
committed by Borruso
parent ea203ac0f2
commit ea49620dab
5 changed files with 19 additions and 22 deletions

View File

@@ -139,8 +139,8 @@ class AccountTax(models.Model):
domain = [
("move_id.state", "in", state_list),
("tax_line_id", "=", self.id),
("tax_exigible", "=", True),
]
domain.extend(self.env["account.move.line"]._get_tax_exigible_domain())
if type_list:
domain.append(("move_id.financial_type", "in", type_list))
return domain
@@ -149,8 +149,8 @@ class AccountTax(models.Model):
domain = [
("move_id.state", "in", state_list),
("tax_ids", "in", self.id),
("tax_exigible", "=", True),
]
domain.extend(self.env["account.move.line"]._get_tax_exigible_domain())
if type_list:
domain.append(("move_id.financial_type", "in", type_list))
return domain