8000 [FIX] account: compute price unit when updating taxes after fpos change · odoo-dev/odoo@8df3d04 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8df3d04

Browse files
committed
[FIX] account: compute price unit when updating taxes after fpos change
Description: --- The action to update Taxes and Accounts when changing the fiscal pos on invoice isn't considering the change in price_unit for lines with price included taxes. Steps to Reproduce: 1- Create a 21% tax and another 6% tax, both are included in price 2- Create a fiscal position that will map the 21% tax by the 6% tax 3- Create a product with Price = 121€, and Tax = 21% 4- Create an invoice with this product. 5- On the (Other info) tab, set the Fiscal Position to the one created. 6- Click on update taxes and accounts: The price will still be 121 while the taxes will change to 6%, and total = 121. 7- Then if you added a new line with the product now after setting the fiscal pos, you will get price= 106, tax=6%, total = 106. Which are the right values. opw-4672466 closes odoo#208780 Signed-off-by: Ali Alfie (alal) <alal@odoo.com>
1 parent c74aa36 commit 8df3d04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/account/models/account_move.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,6 +4047,7 @@ def action_open_business_doc(self):
40474047
}
40484048

40494049
def action_update_fpos_values(self):
4050+
self.invoice_line_ids._compute_price_unit()
40504051
self.invoice_line_ids._compute_tax_ids()
40514052
self.line_ids._compute_account_id()
40524053

0 commit comments

Comments
 (0)
0