[FIX] account: skip tax recomputation during post
Activate avatax. Create a contact [1], and validate it with avatax. Create a product A, priced 11.70, add avatax code [P0000000] Create a product B, priced 9.85, add avatax code [FR000000] Create an invoice, add the two products, set avatax fiscal position Compute taxes with avalara, taxes will be 0.73 Confirm invoice Taxes will update to 1.35. This occurs during `_post`: when invoice date is set, invoice sync will recompute taxes for all lines. [1] Client Avatax-test 133 Route 20 North Oxford MA 01537-1210 United States opw-3174739 closes odoo/odoo#116872 X-original-commit: 7e399b0eb4daa5151eba59a65bc649d453ca6883 Related: odoo/enterprise#38908 Signed-off-by: William André (wan) <wan@odoo.com> Co-authored-by: william-andre <wan@odoo.com>
This commit is contained in:
co-authored by
william-andre
parent
378edfa566
commit
1edaf4fce9
@@ -444,7 +444,7 @@ class AccountMoveLine(models.Model):
|
||||
for line in self:
|
||||
line.partner_id = line.move_id.partner_id.commercial_partner_id
|
||||
|
||||
@api.depends('move_id.date', 'move_id.currency_id')
|
||||
@api.depends('move_id.currency_id')
|
||||
def _compute_currency_id(self):
|
||||
for line in self:
|
||||
if line.display_type == 'cogs':
|
||||
|
||||
Reference in New Issue
Block a user