[6.0RC1] Children tax calculation "included in base amount"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Low
|
Maxime Chambreuil (http://www.savoirfairelinux.com) |
Bug Description
We have a parent tax of 5% and another tax 7.5% which is applied on the original value AND the 5% tax. So we set the following:
tax 5%
in the section children taxes we check "included in base amount", then add the 7.5% tax
in the Sales order, the taxes are calcualted correctly, but when the invoice is generated the parent/child relationship gets reversed.
-------
We believe the problem is that the "included in base amount" code is not in the correct place in the file addons/
class account_tax
function _unit_compute
the 2 lines of code:
#if tax.include_
# cur_price_
need to be INSIDE the children tax calculation, not outside of it, so the could would look like:
if tax.child_ids:
if tax.child_depend:
if tax.include_
(notice the placement of include_
You will need to look at the original code to understand this, but I believe this is correct and WORKS when we test it.
Related branches
- Fabien (Open ERP): Disapprove
-
Diff: 26 lines (+4/-3)1 file modifiedaccount/account.py (+4/-3)
summary: |
- children tax calculation "included in base amount" + [6.0RC1] Children tax calculation "included in base amount" |
Changed in openobject-addons: | |
assignee: | nobody → Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) |
Hello Leigh Willard,
I have checked the bug specification with example and implemented this successfully. You can check the screen shots in the attachment.(sale order and its related invoice).
Would you please provide me the screen shot from your end, So i can get the exact problem regarding account taxes.
Thanks