[FIX]extend two context.

lp bug: https://launchpad.net/bugs/906236 fixed

bzr revid: vme@tinyerp.com-20111227114409-czwzx077hvjvjnee
This commit is contained in:
Vidhin Mehta (OpenERP)
2011-12-27 17:14:09 +05:30
parent bc4f3aac14
commit 07005c983a
+2 -1
View 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;
}
};