[FIX] move setElement init call from WidgetMixin to Widget

Widget is the one providing both setElement and _make_descriptive...

bzr revid: xmo@openerp.com-20120726145704-uzg7ufntvf24gnyd
This commit is contained in:
Xavier Morel 2012-07-26 16:57:04 +02:00
parent 5c0324f321
commit 5fe4ff9c49
1 changed files with 2 additions and 1 deletions

View File

@ -514,7 +514,6 @@ instance.web.WidgetMixin = _.extend({},instance.web.CallbackEnabledMixin, {
*/
init: function(parent) {
instance.web.CallbackEnabledMixin.init.call(this);
this.setElement(this._make_descriptive());
this.setParent(parent);
},
/**
@ -689,6 +688,8 @@ instance.web.Widget = instance.web.Class.extend(instance.web.WidgetMixin, {
*/
init: function(parent) {
instance.web.WidgetMixin.init.call(this,parent);
// FIXME: this should not be
this.setElement(this._make_descriptive());
this.session = instance.connection;
},
/**