Vidhin Mehta  (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-906236-vme into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #906236 in OpenERP Web: "bug with the email template previews form"
  https://bugs.launchpad.net/openerp-web/+bug/906236

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-906236-vme/+merge/86943

Hello,

     "bug with the email template previews form" in this issue,
appropriate context pass.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-906236-vme/+merge/86943
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-906236-vme.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2011-12-23 11:12:11 +0000
+++ addons/web/static/src/js/view_form.js	2011-12-27 12:03:24 +0000
@@ -252,7 +252,8 @@
             'None': function () {return null;},
             'context': function (i) {
                 context_index = i;
-                var ctx = widget.build_context ? widget.build_context() : {};
+                var ctx = widget.build_context ?
+                    _.extend(widget.build_context(),self.dataset.context):{};
                 return ctx;
             }
         };

_______________________________________________
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

Reply via email to