summaryrefslogtreecommitdiff
path: root/addons/account/static/src
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-10-22 12:39:15 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-10-22 12:39:15 +0200
commit6aeb3f5907bd2c335f8a8ea40d7601511d554351 (patch)
tree0f8f6e063b3619a176de4476483ac73e2fb738ee /addons/account/static/src
parentf5f1276a71ff1bd1104d766b2db40a76e1f6dbae (diff)
parent96254074d75c2420eebc43bba5ca4f24ee536eb7 (diff)
[FIX] problem with reconciliation, javascript part
bzr revid: nicolas.vanhoren@openerp.com-20121022103915-afpjv0nrerkxqmz6
Diffstat (limited to 'addons/account/static/src')
-rw-r--r--addons/account/static/src/js/account_move_reconciliation.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/account/static/src/js/account_move_reconciliation.js b/addons/account/static/src/js/account_move_reconciliation.js
index e8bf24fb27f..bc758179636 100644
--- a/addons/account/static/src/js/account_move_reconciliation.js
+++ b/addons/account/static/src/js/account_move_reconciliation.js
@@ -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);
+ },
});
};