Skip to content

Commit

Permalink
[REDO] Remove breaking change in fiscal_classification import
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Nov 22, 2024
1 parent 9d647e4 commit f070d22
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def _custom_import_hook_vals(self, old_vals, new_vals):
self._custom_import_handle_fiscal_classification_id(old_vals, new_vals)

def _custom_import_get_fiscal_classifications(self, vat_amount):
domain = [("company_id", "=", self.env.company.id)]
domain = expression.OR(
[[("company_id", "=", self.env.company.id)], [("company_id", "=", False)]]
)
if vat_amount:
domain = expression.AND(
[domain, [("sale_tax_ids.amount", "=", 100 * vat_amount)]]
Expand Down

0 comments on commit f070d22

Please sign in to comment.