[FIX]extend two context.
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>
Tue, 27 Dec 2011 11:44:09 +0000 (17:14 +0530)
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>
Tue, 27 Dec 2011 11:44:09 +0000 (17:14 +0530)
lp bug: https://launchpad.net/bugs/906236 fixed

bzr revid: vme@tinyerp.com-20111227114409-czwzx077hvjvjnee

addons/web/static/src/js/view_form.js

index 5619f42..62268b7 100644 (file)
@@ -252,7 +252,8 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
             'None': function () {return null;},
             'context': function (i) {
                 context_index = i;
-                var ctx = widget.build_context ? widget.build_context() : {};
+                ar ctx = widget.build_context ?
+                    _.extend(widget.build_context(),self.dataset.context):{};
                 return ctx;
             }
         };