From d3ff658fe2b3cca0572c5de9be25bcd08be50325 Mon Sep 17 00:00:00 2001 From: "RGA(OpenERP)" <> Date: Mon, 6 Aug 2012 16:16:31 +0530 Subject: [PATCH] [REM] remove default selection from addons it should be added in web bzr revid: rgaopenerp-20120806104631-woy75igiysygblad --- addons/account/static/src/js/account.js | 26 +------------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/addons/account/static/src/js/account.js b/addons/account/static/src/js/account.js index 15ef397aa1a..5a6245e395d 100644 --- a/addons/account/static/src/js/account.js +++ b/addons/account/static/src/js/account.js @@ -208,29 +208,5 @@ instance.account.list_button = instance.web.form.WidgetButton.extend({ }); } }) -instance.account.set_selection = instance.web.ListView.include({ - default_selection: function(){ - var self = this - selection_method = this.fields_view.arch.attrs.default_selection; - if(selection_method){ - this.dataset.call(selection_method, [this.dataset.ids], this.context).then(_.bind(self.set_selection, self)); - } - }, - - set_selection : function(ids){ - this.$element.find('th.oe_list_record_selector input') - .closest('tr').each(function () { - if(_.include(ids, $(this).data('id'))){ - $(this).find('th.oe_list_record_selector input').prop('checked', true) - } - } - ); - }, - reload_content: function() { - var reloaded =this._super() - var self = this - reloaded.done(_.bind(self.default_selection, self)) - }, -}) - + }