← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 659006] Re: [stab] tax code parent sum bug

 

** Changed in: openobject-addons
     Assignee: (unassigned) => DHS(OpenERP) (dhs-openerp)

-- 
[stab] tax code parent sum bug 
https://bugs.launchpad.net/bugs/659006
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
OpenERP 5.0.14 - Critical for those using more than 2 levels of tax codes (like in Poland) for tax declaration.

When you have more than 2 levels of tax codes the root tax code is wrongly calculated by function in tree view.
Create tax codes:
RegisterA1
SUMRegisterA   - parent of RegisterA1
TotalSUM  - parent of SUMRegisterA

Let say you have a value 20 in RegisterA1. On list view of tax codes for period or for year you will have:

RegisterA1 - 20 (value)
SUMRegisterA - 20 (sum of RegisterA1 - correct)
TotalSUM - 40 (sum of SUMRegisterA - incorrect)

Because of nature of bug the values in form view are correct.

I enclose a patch proposal for this. By the way: Where can I find which diff options should I use as standard for OpenERP commitment?