opening entries from chart of account doesn't use context

Bug #672553 reported by qdp (OpenERP)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

If you go in F.M\Charts\Chart of Accounts, then open the journal items of any account by double-clicking on it in the tree: it will put an implicit domain like [('account_id','=', active_id)] in the opened tab instead of using the context to set the chosen account as default value.

Thanks

Related branches

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello qdp,

         I have checked the problem described by you. It seems there is domain like [('account_id','child_of', active_id)] not [('account_id','=', active_id)] set on action of the journal items. So if we try to give <field name="context">{'account_id':active_id}</field> in its action it does not work with child_of attribute on domain.

Note: This problem is also in Chart of taxes too.

        So there may be problem from framework. so can you please check. and give the feedback.

Thank you,
ara

Revision history for this message
qdp (OpenERP) (qdp) wrote :

ho yes well seen...

well in that case i think we could change the domain into [('code','=', active_id.code)], as the search on the code is already fetching the children.

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello,

i suggest this patch. You can check and apply.

Thanks,
mra

Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello qdp,

We have fixed the problem in lp:~openerp-dev/openobject-addons/trunk-dev-addons3-ara branch, It will be merged soon with Trunk addons.

Revision No: 4536
Revision ID: <email address hidden>

Thank you,
ara

Changed in openobject-addons:
status: In Progress → Fix Released
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.