Skip to content
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

[FIX] account_invoice: use tax groups correctly #76855

Conversation

Sehnde
Copy link
Contributor

@Sehnde Sehnde commented Sep 20, 2021

With the previous fix, tax groups would not work correctly when checking
if a tax affected a subsequent tax.
With this fix, all taxes that are not of amount_type group are aggregated
before following the normal flow.
This also takes care of cases when a user uses both taxes and tax groups
on a single invoice line.

opw-2497281

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

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Sep 20, 2021
@robodoo
Copy link
Contributor

robodoo commented Sep 20, 2021

@C3POdoo C3POdoo requested review from a team and FlorianGilbert and removed request for a team September 20, 2021 15:01
With the previous fix, tax groups would not work correctly when checking
if a tax affected a subsequent tax.
With this fix, all taxes that are not of amount_type group are aggregated
before following the normal flow.

opw-2497281
@Sehnde Sehnde force-pushed the 12.0-opw-2497281-fix_discount_in_tax_group-snd branch from ffd9d23 to 0d28b57 Compare September 21, 2021 08:04
Copy link
Contributor

@oco-odoo oco-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oco-odoo
Copy link
Contributor

@fw-bot ignore

I tested in 12.3: works fine there :)

@fw-bot
Copy link
Contributor

fw-bot commented Sep 29, 2021

Forward-port disabled.

@Sehnde
Copy link
Contributor Author

Sehnde commented Sep 29, 2021

Perfect, thanks a lot

robodoo pushed a commit that referenced this pull request Sep 29, 2021
With the previous fix, tax groups would not work correctly when checking
if a tax affected a subsequent tax.
With this fix, all taxes that are not of amount_type group are aggregated
before following the normal flow.

opw-2497281

closes #76855

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
@robodoo robodoo closed this Sep 29, 2021
@robodoo robodoo temporarily deployed to merge September 29, 2021 09:17 Inactive
@fw-bot fw-bot deleted the 12.0-opw-2497281-fix_discount_in_tax_group-snd branch October 13, 2021 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants