[18.0][ADD] hr_expense_tax_distribution : add module#341
Open
metaminux wants to merge 1 commit into
Open
Conversation
7cddcdb to
8f1c8cf
Compare
Author
|
Hi @OCA/human-resources-maintainers Can someone review this PR please ? Regards, |
Author
Author
|
Hi @sebalix and @florian-dacosta Can you review this PR ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This module addresses a limitation of standard Odoo when dealing with mixed-rate receipts (e.g. restaurant bills in France, where food, soft drinks and alcoholic beverages are taxed at 5.5%, 10% and 20% respectively). In standard Odoo, an expense accepts a single set of taxes applied to the full amount, leading to an incorrect VAT breakdown in the accounting entry and wrong figures in the tax declaration.
When an expense carries more than one tax, a Tax Distribution table appears on the expense form. The user fills in the tax-excluded base amount for each applicable rate; tax amount and TTC total are computed automatically. The module validates that the distribution totals match the expense total before submission, and generates one base line and one tax line per distribution entry in the final accounting entry instead of a single blended line. Expenses with a single tax are unaffected.
Key design decisions