← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 823897] Re: Strange behavior with account_payment and account_analytic_plans

 

Should be fix with separate patch as related  branch was rejected.

Thanks,
Mustufa

** Changed in: openobject-addons
       Status: Fix Committed => Confirmed

** Changed in: openobject-addons
    Milestone: None => 6.1

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

Title:
  Strange behavior with account_payment and account_analytic_plans

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  This is a quite strange behavior on the view of "Journal Items" (account.move.line) with the presence of the modules account_payment and account_analytic_plans,
  so I will try to explain it...

  In the account module the tree view of account.move.line is defined so
  that it can be edited without a form (editable = top), this offers
  speed to the accountants at the time of introducing Journal Items. But
  if we install both modules at the same time, this does not happen, and
  only can be introduced with a form...

  I have been looking the code of the modules and I belive the problem is related to the inheritance of the model account.move.line: if we have only installed the account_payment module, the tree view is overwritten and has one more field (amount_to_pay), but the introduction of data keeps being on the tree. Up to here, everything is correct. But when we install the module account_analytic_plans, the tree view of account_move_line completely changes and Journal Items can not be introduced any more on the tree, they have to be introduced in the form, losing all the speed. In this point, I have been able to see that account.move.line makes use of one view of the module account_payment, id="view_move_line_tree_wiz" and I do not understand the reason... I have also been able to see, that, if the function "fields_view_get()" is eliminated from
  account_analytic_plans.py (line: 345-349) Everything returns to the normality, journal items can be introduced on the tree and there are no problems... but why?

  I need a little help, some brave? ;)

  I am using the server, web client, addons and addons-extra fom the 6.0
  branch updated from lp and the spanish localization from openerp-
  spain.

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


References