Fabien (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-reconcile-fix-rga into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-reconcile-fix-rga/+merge/130751
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-reconcile-fix-rga/+merge/130751
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-reconcile-fix-rga.
=== modified file 'account/static/src/js/account_move_reconciliation.js'
--- account/static/src/js/account_move_reconciliation.js 2012-10-17 14:56:39 +0000
+++ account/static/src/js/account_move_reconciliation.js 2012-10-22 08:41:28 +0000
@@ -11,15 +11,15 @@
this._super.apply(this, arguments);
var self = this;
this.current_partner = null;
- this.do_select.add(function() {
- if (self.get_selected_ids().length === 0) {
+ this.on('record_selected', this, function(ids, records) {
+ if (ids.length === 0) {
self.$(".oe_account_recon_reconcile").attr("disabled", "");
} else {
self.$(".oe_account_recon_reconcile").removeAttr("disabled");
}
});
},
- on_loaded: function() {
+ load_list: function() {
var self = this;
var tmp = this._super.apply(this, arguments);
if (this.partners) {
@@ -121,6 +121,10 @@
self.do_search(self.last_domain, self.last_context, self.last_group_by);
});
},
+ do_select: function (ids, records) {
+ this.trigger('record_selected', ids, records)
+ this._super.apply(this, arguments);
+ },
});
};
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp