diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-05-27 11:28:11 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-05-27 11:28:11 +0200 |
| commit | d7e17b06cfbfdf77b4ec7e4ff6e8a1efd66f4075 (patch) | |
| tree | 9ec3b463ba2b2e55f4c6ef2b6f28a39ebf253a2d /addons/base/static/src/js/form.js | |
| parent | 1e979b936d5c5b85e7797c0a915cc5f1ea59637c (diff) | |
| parent | 4ee9ba6d57ed6b37adb426e9947542af034dccc7 (diff) | |
[IMP] final fixes to list view/groups for behavior which should be correct in list view itself:
* Handle aggregate fields (at the list level)
* remove color handling for now, go back to using vanilla datasets for fetching records
TODO: Ensure that APIs available are useable for third-parties to use list views as components, or fix those APIs
bzr revid: xmo@openerp.com-20110527092811-ldxd4oufvjtqvha3
Diffstat (limited to 'addons/base/static/src/js/form.js')
| -rw-r--r-- | addons/base/static/src/js/form.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/base/static/src/js/form.js b/addons/base/static/src/js/form.js index 89f3a91f676..3374050fa17 100644 --- a/addons/base/static/src/js/form.js +++ b/addons/base/static/src/js/form.js @@ -1080,7 +1080,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(); } } }); @@ -1090,11 +1090,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. @@ -1115,7 +1115,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(); }); @@ -1188,7 +1188,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; }; }); |
