← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 783670] Re: account - level - wrong computation

 

Hello Ferdinand,

I have applied your patch and considering the suggestions given by
Olivier Dony its been fixed at the following revision:-

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-783670-mtr branch.
Revision ID: mtr@mtr-20110616093021-n7ihs56l7v08ntwq
Revision no: 4793

Thanks for the contribution.

Thanks,
mtr

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/783670

Title:
  account - level - wrong computation

Status in OpenERP Modules (addons):
  Fix Committed

Bug description:
  account/account.py

  def _get_level

  currently the calculated level (except level 1) is very much random,
  depending on the sequence of processed records

  2 issues:
  1) IMHO the function makes the wrong assumption that the level of the parent account is already calculated, which is not necessarily the case
  2) the level (stored=True) of all childs must be recalculated if the level of a parent changes. IMHO this would also solve issue 1).
  change of structure may be done any time manually.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/783670/+subscriptions


References