summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorValentin Lab <valentin.lab@kalysto.org>2011-10-04 09:48:42 +0200
committerValentin Lab <valentin.lab@kalysto.org>2011-10-04 09:48:42 +0200
commit58c3f5c93ebad356f4e5d652cfc001f2177f48b3 (patch)
treea70a0544f31d07e5832812da1bf34861a31267f6 /addons/web/static/src/js
parente80894b77538739b0f2e0e672f9e077bb7d43cd1 (diff)
[imp] be more coherent to send widget as usual as form template data.
This can be used in mobile version or other templates that would like to subclass the main FormView class. bzr revid: valentin.lab@kalysto.org-20111004074842-txpar1ph0utc2eqd
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 11ebad8d093..d10c6989ff8 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -85,7 +85,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
this.fields_view = data;
var frame = new (this.registry.get_object('frame'))(this, this.fields_view.arch);
- this.rendered = QWeb.render(this.form_template, { 'frame': frame, 'view': this });
+ this.rendered = QWeb.render(this.form_template, { 'frame': frame, 'view': this, 'widget': this });
}
this.$element.html(this.rendered);
_.each(this.widgets, function(w) {