From 1a209f7d60d7946300e10262a0b290655e5da438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agathe=20Moll=C3=A9?= Date: Fri, 11 Sep 2015 16:23:26 -0400 Subject: [PATCH] [FIX] Fix self._partners bug, probably due to a bad merging --- .../report/partner_aged_statement_report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py b/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py index ef272bc5..bc63445b 100644 --- a/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py +++ b/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py @@ -37,14 +37,14 @@ from openerp.addons.account.report.account_aged_partner_balance import ( class PartnerAgedTrialReport(aged_trial_report): - _partner = None + _partners = None def __init__(self, cr, uid, name, context): super(PartnerAgedTrialReport, self).__init__(cr, uid, name, context) current_user = self.localcontext["user"] self._company = current_user.company_id if self.localcontext.get("active_model", "") == "res.partner": - self._partner = self.localcontext["active_id"] + self._partners = self.localcontext["active_ids"] self.ttype = 'receipt' self.localcontext.update({ 'message': self._message, @@ -294,7 +294,7 @@ class PartnerAgedTrialReport(aged_trial_report): res = super(PartnerAgedTrialReport, self).set_context( objects, data, ids, report_type=report_type) self.orig_query = self.query - if self._partner is not None: + if self._partners is not None: self.query = "{0} AND l.partner_id = {1}".format( self.query, ", ".join(str(int(i)) for i in self._partners),