From 45c8d1d93d75133ab067318d6e2bf54af94d5ae5 Mon Sep 17 00:00:00 2001 From: "VRA(OpenERP)" <> Date: Thu, 24 Sep 2009 18:11:04 +0530 Subject: [PATCH] [FIX] Account : Partner Balance report gets printed with respect to the company selected lp bug: https://launchpad.net/bugs/351083 fixed bzr revid: jvo@tinyerp.com-20090924124104-1jujc0yjssk1dlbb --- addons/account/report/partner_balance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/report/partner_balance.py b/addons/account/report/partner_balance.py index 4551aca1ed4..ddd6ad1ecb4 100755 --- a/addons/account/report/partner_balance.py +++ b/addons/account/report/partner_balance.py @@ -217,6 +217,7 @@ class partner_balance(report_sxw.rml_parse): "JOIN account_account ac ON (l.account_id = ac.id)" \ "WHERE ac.type IN " + self.ACCOUNT_TYPE + " " \ "AND l.date IN (" + self.date_lst_string + ") " \ + "AND ac.company_id = "+ str(data['form']['company_id']) +" " \ "GROUP BY p.id, p.ref, p.name,l.account_id,ac.name,ac.code " \ "ORDER BY l.account_id,p.name") res = self.cr.dictfetchall()