summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-01-12 16:34:19 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-01-12 16:34:19 +0100
commit059a8068f242dd8e3a6d7e5fc453073ff251d016 (patch)
tree17e3c633310e24f4e622b7dd04369c34c45bfe6f /addons/web/static/src/js
parent2ea7dae91f3ce915fabd1cbd420ceb78685d242b (diff)
parent377b9a81ed1d5e2b102b8814370c98857d78ef44 (diff)
[fix] problem with email template preview
bzr revid: nicolas.vanhoren@openerp.com-20120112153419-morwrmy7ozqxup6f
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/view_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 5f2f587d669..fe604a8c0b0 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -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;
}
};