diff options
| author | ggh-openerp <ggh@tinyerp.com> | 2012-10-09 11:46:18 +0530 |
|---|---|---|
| committer | ggh-openerp <ggh@tinyerp.com> | 2012-10-09 11:46:18 +0530 |
| commit | 5ab21e13a36902c13905ff92bb1cc0d728dbd467 (patch) | |
| tree | d327ccb61de632f0797dd5853cf2b57395085ddb /addons/web/static/src/js/data.js | |
| parent | 41daef35ed22f605d37aa528aaa802e8d6eb568b (diff) | |
[IMP] Remove add_last in on_unlink method
bzr revid: ggh@tinyerp.com-20121009061618-ohsjlzf14jpqws2q
Diffstat (limited to 'addons/web/static/src/js/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 220d42737da..79f909c0908 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -690,9 +690,11 @@ instance.web.DataSet = instance.web.CallbackEnabled.extend({ instance.web.DataSetStatic = instance.web.DataSet.extend({ init: function(parent, model, context, ids) { + var self = this; this._super(parent, model, context); // all local records this.ids = ids || []; + self.on("on_rec_unlink", self, self.on_unlink); }, read_slice: function (fields, options) { options = options || {}; @@ -711,7 +713,7 @@ instance.web.DataSetStatic = instance.web.DataSet.extend({ } }, unlink: function(ids) { - this.on_unlink(ids); + this.trigger('on_rec_unlink', ids); return $.Deferred().resolve({result: true}); }, on_unlink: function(ids) { |
