[FIX] get rid of null viewmanager

bzr revid: al@openerp.com-20110810132945-lti3ihn58he88ivq
This commit is contained in:
Antony Lesuisse
2011-08-10 15:29:45 +02:00
parent a7163f9d6a
commit 8faecbd609
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -1884,7 +1884,7 @@ openerp.base.form.FieldMany2Many = openerp.base.form.Field.extend({
self.on_ui_change();
});
this.list_view = new openerp.base.form.Many2ManyListView(new openerp.base.NullViewManager(this), this.list_id, this.dataset, false, {
this.list_view = new openerp.base.form.Many2ManyListView(this, this.list_id, this.dataset, false, {
'addable': 'Add',
'selectable': self.multi_selection
});
-9
View File
@@ -290,15 +290,6 @@ openerp.base.ViewManager = openerp.base.Widget.extend({
}
});
openerp.base.NullViewManager = openerp.base.generate_null_object_class(openerp.base.ViewManager, {
init: function(parent) {
this._super(parent);
if(parent)
this.session = parent.session;
this.action = {flags: {}};
}
});
// Move parts or everything to ActionManager
openerp.base.ViewManagerAction = openerp.base.ViewManager.extend({
init: function(parent, action) {