diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-02-14 16:20:31 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-02-14 16:20:31 +0100 |
| commit | c8912b68d83d10c2b8bf6a3a56f28bf051b170ec (patch) | |
| tree | 35a23fd1b147c9f5b20609da8f349dc997ee339d /addons/web/static/src/js/data.js | |
| parent | 04849550aa3f4676a552df0d02725227ad75d26f (diff) | |
[fix] problem with on_changes in the editable lists in o2m
bzr revid: nicolas.vanhoren@openerp.com-20120214152031-br1lq6zqx6ycdj7p
Diffstat (limited to 'addons/web/static/src/js/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index cb63079fe2c..38119c63d3a 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -525,7 +525,10 @@ openerp.web.DataSet = openerp.web.OldWidget.extend( /** @lends openerp.web.Data }, size: function () { return this.ids.length; - } + }, + alter_ids: function(n_ids) { + this.ids = n_ids; + }, }); openerp.web.DataSetStatic = openerp.web.DataSet.extend({ init: function(parent, model, context, ids) { @@ -784,7 +787,11 @@ openerp.web.BufferedDataSet = openerp.web.DataSetStatic.extend({ } } return this._super(method, args, callback, error_callback); - } + }, + alter_ids: function(n_ids) { + this._super(n_ids); + this.on_change(); + }, }); openerp.web.BufferedDataSet.virtual_id_regex = /^one2many_v_id_.*$/; |
