From 230ed4a0614f2f7aa61b5652c31cd80ae3ea7f21 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 17 Sep 2012 10:23:04 +0200 Subject: [PATCH] fixed bug bzr revid: nicolas.vanhoren@openerp.com-20120917082304-uufuuwa8gwtg39y3 --- addons/account/static/src/js/account_move_reconciliation.js | 3 +-- 1 file changed, 1 insertion(+), 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 ab15242d593..ceda8417d75 100644 --- a/addons/account/static/src/js/account_move_reconciliation.js +++ b/addons/account/static/src/js/account_move_reconciliation.js @@ -16,12 +16,11 @@ openerp.account = function (instance) { return tmp; }, do_search: function(domain, context, group_by) { - var sup = this._super; + var sup = _.bind(this._super, this); var mod = new instance.web.Model(this.model, context, domain); return mod.query("partner_id").group_by(["partner_id"]).pipe(function(result) { var vals = _.chain(result).pluck("attributes").pluck("value") .filter(function(el) {return !!el;}).value(); - debugger; return sup(new instance.web.CompoundDomain(domain, [["partner_id", "in", _.pluck(vals, 0)]]), context, group_by); }); },