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

Skip to content

Commit 9e2da38

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 #210462 X-original-commit: 8df3d04 Signed-off-by: Ali Alfie (alal) <alal@odoo.com> Signed-off-by: Mohamed Yousef Ahmed (myah) <myah@odoo.com>
1 parent fb2e18d commit 9e2da38

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
@@ -5140,6 +5140,7 @@ def action_open_business_doc(self):
51405140
}
51415141

51425142
def action_update_fpos_values(self):
5143+
self.invoice_line_ids._compute_price_unit()
51435144
self.invoice_line_ids._compute_tax_ids()
51445145
self.line_ids._compute_account_id()
51455146

0 commit comments

Comments
 (0)
0