diff options
| author | Mohammed Shekha <msh@openerp.com> | 2013-02-19 15:49:40 +0530 |
|---|---|---|
| committer | Mohammed Shekha <msh@openerp.com> | 2013-02-19 15:49:40 +0530 |
| commit | 8d02a23ee96211c5fc539dc9490220a58e8467e8 (patch) | |
| tree | 125c7f38d3ab311b05a7fb386370fd71eb7f264c /addons/web/static/src | |
| parent | b68f13d892b013f8e3e0d17d45406e38eaac63cb (diff) | |
[FIX]Fixed the issue of reload record affter callign exec_workflow for one2many dataset.
bzr revid: msh@openerp.com-20130219101940-uum7iqbvvhg619uk
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/data.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index bbff633c687..137694ee347 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -860,9 +860,8 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({ } return completion.promise(); }, - call_button: function (method, args) { - var id = args[0][0], index; - for(var i=0, len=this.cache.length; i<len; ++i) { + evict_record: function(id) { + for (var i = 0, len = this.cache.length; i < len; ++i) { var record = this.cache[i]; // if record we call the button upon is in the cache if (record.id === id) { @@ -871,8 +870,16 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({ break; } } + }, + call_button: function (method, args) { + var id = args[0][0], index; + this.evict_record(id); return this._super(method, args); }, + exec_workflow: function (id, signal) { + this.evict_record(id); + return this._model.exec_workflow(id, signal); + }, alter_ids: function(n_ids) { this._super(n_ids); this.trigger("dataset_changed", n_ids); |
