8000 [FW][FIX] account: compute price unit when updating taxes after fpos change by fw-bot · Pull Request #210504 · odoo/odoo · GitHub
[go: up one dir, main page]

Skip to content

[FW][FIX] account: compute price unit when updating taxes after fpos change #210504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fw-bot
Copy link
Contributor
@fw-bot fw-bot commented May 17, 2025

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 (from 21 to 6).
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.

Cause:

The action created for updating taxes and accounts didn't consider price changes for price included taxes.

Fix:

Add call to _compute_price_unit()

opw-4672466


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #208780

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

X-original-commit: 8df3d04
@robodoo
Copy link
Contributor
robodoo commented May 17, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label May 17, 2025
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0