Skip to content

Commit

Permalink
[FIX] skip account.tax recomputation for imported documents
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Apr 19, 2024
1 parent 3fde373 commit 8582b95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_br_account/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,11 @@ def _onchange_fiscal_document_line_id(self):
# override the default product uom (set by the onchange):
self.product_uom_id = self.fiscal_document_line_id.uom_id.id

def _get_computed_taxes(self):
if self._is_imported() and self.fiscal_tax_ids and self.tax_ids:
return self.tax_ids
return super()._get_computed_taxes()

@api.onchange("fiscal_tax_ids")
def _onchange_fiscal_tax_ids(self):
"""Ao alterar o campo fiscal_tax_ids que contém os impostos fiscais,
Expand Down

0 comments on commit 8582b95

Please sign in to comment.