Strange behavior with account_payment and account_analytic_plans

Bug #823897 reported by Biel - txerpa.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

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.

Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote :

Hello,

The problem occurs only when both the modules are installed.

While installing any one of the module (.i.e. either account_payment or account_analytic_plan) allows to edit in the tree.

Thanks for reporting.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

Hello,

This bug is fixed with https://bugs.launchpad.net/openobject-addons/+bug/717561 and will be merge soon into main addons.

Thanks,
Purnendu Singh

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

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

Thanks,
Mustufa

Changed in openobject-addons:
status: Fix Committed → Confirmed
milestone: none → 6.1
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Biel,

Thanks for reporting, i have checked your reported issue with latest trunk. I installed the account_payment and account_analytic_plan modules and tried to make Journal Items, the system allowed to do the same through tree view.

So i request you to please check again with the latest trunk.

Thanks & Regards,
Devnani Bharat R.

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Biel - txerpa.com (txerpa) wrote :

Hello Bharat,

Thanks to you for the solution, with the latest trunk the Journal Items works fantastic with the two modules installed.

Thanks to all.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.