Context lose on one2many field

Bug #674549 reported by Christophe CHAUVET
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Won't Fix
Medium
Unassigned
Trunk
Confirmed
Wishlist
OpenERP sa GTK client R&D

Bug Description

OpenObject: 5.0.15
Server revno: 2149
Addons revno: 2880
Client revno: 1094
Web revno: 2944

when we define a context on XML one2many field (<field .... context="{'form_view_ref': 'module.xml_id'}"/>), the context is not pass on the rpc call, in this case we cannot pass default value (default_xxx) when click on new button, and choose which xml view we want for form view with form_view_ref on fields_view_get

I have made a patch and branch to fix this issue

Distribution: Ubuntu
Version: 9.10 (karmic)
Python 2.6.4

Locale:
  LANG=fr_FR.UTF-8

tags: added: context field one2many xml
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

I see 2 points here.

1. Context being passed to methods of one2many. I see that it is working perfect. Examples are Partner bank,move lines creation,etc.
2. 'form_view_ref' : If I am not wrong, this is not available for o2m fields yet.

Sorry, but it is a major change in terms of attributes of O2M,so setting as won't fix for stable.
You may contact maintenance team for the same if you wish to get this fixed on stable.

On trunk, I would opt to set as invalid as I dont see any issue.

Correct me If I missed anything.

Thanks.

summary: - [5.0] Context lose on one2many field
+ Context lose on one2many field
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

For point 2 on trunk, we can consider this for future releases, but not 6.0 ofcourse.
Thanks.

description: updated
Revision history for this message
Mondlane Trindade (mondlane-trindade-e) wrote :

6yrthtrh

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.