qdp (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client/6.0-parent-in-context-of-one2many-fields-qdp
into lp:openobject-client/6.0.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-parent-in-context-of-one2many-fields-qdp/+merge/72391
allow to use 'parent' variable in context of one2many fields
--
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-parent-in-context-of-one2many-fields-qdp/+merge/72391
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client/6.0-parent-in-context-of-one2many-fields-qdp.
=== modified file 'bin/widget/view/form_gtk/one2many_list.py'
--- bin/widget/view/form_gtk/one2many_list.py 2011-07-06 14:03:58 +0000
+++ bin/widget/view/form_gtk/one2many_list.py 2011-08-22 08:40:24 +0000
@@ -177,7 +177,7 @@
# 'default_get' attribute for the same effect (pending removal)
default_get_ctx = (attrs.get('default_get') or attrs.get('context'))
- self.context = tools.expr_eval(attrs.get('context',"{}"), {"__builtins__":None})
+ self.context = tools.expr_eval(attrs.get('context',"{}"), {"__builtins__":None, "parent": parent})
self.screen = Screen(attrs['relation'],
view_type=attrs.get('mode','tree,form').split(','),
parent=self.parent, views_preload=attrs.get('views', {}),
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp