Skip to content

Commit

Permalink
Merge PR #3574 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by antoniospneto
  • Loading branch information
OCA-git-bot committed Jan 9, 2025
2 parents 1ae8583 + a7a2f5b commit e1d621f
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions l10n_br_account/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,10 @@ def changed(fname):
if line.cfop_id and not line.cfop_id.finance_move:
unsigned_amount_currency = 0
if not line.move_id.fiscal_operation_id.deductible_taxes:
# Quando não há financeiro associado, mas há impostos e
# nenhum imposto dedutível, é necessário registrar a
# contrapartida dos impostos para manter o balanço contábil
# equilibrado. Na versão 14 do Odoo, essa diferença era
# automaticamente alocada às contas associadas aos termos
# de pagamento.
# When there is no financial amount but there are non
# dectutible taxes, then we should take the total tax
# amount into account here to keep the move balanced.
# (In v14 that was done automatically in the payment terms)
unsigned_amount_currency = -(
line.amount_tax_included
+ line.amount_tax_not_included
Expand Down Expand Up @@ -553,10 +551,6 @@ def _get_computed_taxes(self):
elif self.move_id.is_purchase_document(include_receipts=True):
user_type = "purchase"

# Retrieve taxes based on user type and fiscal operation.
if user_type:
tax_ids = self.fiscal_tax_ids.account_taxes(
user_type=user_type, fiscal_operation=self.fiscal_operation_id
)

return tax_ids
return self.fiscal_tax_ids.account_taxes(
user_type=user_type, fiscal_operation=self.fiscal_operation_id
)

0 comments on commit e1d621f

Please sign in to comment.