[FIX] problem with reconciliation, javascript part

bzr revid: nicolas.vanhoren@openerp.com-20121022103915-afpjv0nrerkxqmz6
This commit is contained in:
niv-openerp 2012-10-22 12:39:15 +02:00
commit 6aeb3f5907
1 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,7 @@ openerp.account = function (instance) {
this._super.apply(this, arguments);
var self = this;
this.current_partner = null;
this.do_select.add(function() {
this.on('record_selected', this, function() {
if (self.get_selected_ids().length === 0) {
self.$(".oe_account_recon_reconcile").attr("disabled", "");
} else {
@ -19,7 +19,7 @@ openerp.account = function (instance) {
}
});
},
on_loaded: function() {
load_list: function() {
var self = this;
var tmp = this._super.apply(this, arguments);
if (this.partners) {
@ -121,6 +121,10 @@ openerp.account = function (instance) {
self.do_search(self.last_domain, self.last_context, self.last_group_by);
});
},
do_select: function (ids, records) {
this.trigger('record_selected')
this._super.apply(this, arguments);
},
});
};