From 1f247b96e1c6232a73fe963b76a34c0e5ca72c74 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 27 May 2011 09:13:09 +0200 Subject: [IMP] Remove colors handling so ListView.fill is not necessary anymore, and can go back to ListView.load and DataSet.search_read bzr revid: xmo@openerp.com-20110527071309-rtdkawbu4v7xfepd --- addons/base/static/src/js/form.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'addons/base/static/src/js/form.js') diff --git a/addons/base/static/src/js/form.js b/addons/base/static/src/js/form.js index 2d24f99c365..9ff05de4a84 100644 --- a/addons/base/static/src/js/form.js +++ b/addons/base/static/src/js/form.js @@ -1035,7 +1035,7 @@ openerp.base.form.FieldMany2Many = openerp.base.form.Field.extend({ }, check_load: function() { if(this.is_started && this.is_setted) { - this.list_view.do_reload(); + this.list_view.reload_view(); } } }); @@ -1045,11 +1045,11 @@ openerp.base.form.Many2ManyListView = openerp.base.ListView.extend({ this.dataset.ids = _.without.apply(null, [this.dataset.ids].concat(ids)); this.dataset.count = this.dataset.ids.length; // there may be a faster way - this.do_reload(); + this.reload_view(); this.m2m_field.on_ui_change(); }, - do_reload: function () { + reload_view: function () { /* Dear xmo, according to your comments, this method's implementation in list view seems * to be a little bit bullshit. * I assume the list view will be changed later, so I hope it will support static datasets. @@ -1070,7 +1070,7 @@ openerp.base.form.Many2ManyListView = openerp.base.ListView.extend({ if(! _.detect(self.dataset.ids, function(x) {return x == element_id;})) { self.dataset.ids.push(element_id); self.dataset.count = self.dataset.ids.length; - self.do_reload(); + self.reload_view(); } pop.stop(); }); @@ -1143,7 +1143,7 @@ openerp.base.form.Many2XSelectPopup = openerp.base.BaseWidget.extend({ var tmphack = {"loaded": false}; self.view_list.on_loaded.add_last(function() { if ( !tmphack.loaded ) { - self.view_list.do_reload(); + self.view_list.reload_view(); tmphack.loaded = true; }; }); -- cgit v1.2.3