[fix] problem with email template preview
authorniv-openerp <nicolas.vanhoren@openerp.com>
Thu, 12 Jan 2012 15:34:19 +0000 (16:34 +0100)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Thu, 12 Jan 2012 15:34:19 +0000 (16:34 +0100)
bzr revid: nicolas.vanhoren@openerp.com-20120112153419-morwrmy7ozqxup6f

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

index 5f2f587..fe604a8 100644 (file)
@@ -257,7 +257,7 @@ 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() : {};
+                var ctx = new openerp.web.CompoundContext(self.dataset.get_context(), widget.build_context() ? widget.build_context() : {});
                 return ctx;
             }
         };