summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-10-27 12:45:17 +0200
committerXavier Morel <xmo@openerp.com>2011-10-27 12:45:17 +0200
commitfca7ced1522d791763d035ecdae5e03b9b5d2ec4 (patch)
tree825a669eb3ce31275bf42b0deffcca264b5061e5 /addons/web/static/src/js
parent2403f027c7de93184548f6c74b6fb7328cbadca9 (diff)
parent58c3f5c93ebad356f4e5d652cfc001f2177f48b3 (diff)
[IMP] rename 'this' from 'view' to 'widget' in the FormView template rendering to increase coherency amongst templates, courtesy of Valentin Lab
bzr revid: xmo@openerp.com-20111027104517-9u3b8q0e50mboikw
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 796f577017f..b864365df99 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -89,7 +89,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, 'widget': this });
}
this.$element.html(this.rendered);
_.each(this.widgets, function(w) {