Skip to content

Commit

Permalink
Merge PR OCA#377 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Nov 9, 2023
2 parents 0b3cf3e + f457d47 commit 4d46c9b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions account_avatax_oca/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,26 +125,6 @@ def _compute_hide_exemption(self):
"Also, it will show Tax based on shipping address button",
)

@api.depends(
"line_ids.debit",
"line_ids.credit",
"line_ids.currency_id",
"line_ids.amount_currency",
"line_ids.amount_residual",
"line_ids.amount_residual_currency",
"line_ids.payment_id.state",
"avatax_amount",
)
def _compute_amount(self):
res = super()._compute_amount()
for inv in self:
if inv.avatax_amount:
inv.amount_tax = abs(inv.avatax_amount)
inv.amount_total = inv.amount_untaxed + inv.amount_tax
sign = inv.move_type in ["in_refund", "out_refund"] and -1 or 1
inv.amount_total_signed = inv.amount_total * sign
return res

@api.depends("tax_on_shipping_address", "partner_id", "partner_shipping_id")
def _compute_tax_address_id(self):
for invoice in self:
Expand Down

0 comments on commit 4d46c9b

Please sign in to comment.