From 83abecc923d8360a46c8a1597389f004084f200f Mon Sep 17 00:00:00 2001 From: Guillaume Auger Date: Fri, 30 Jan 2015 09:56:29 -0500 Subject: [PATCH] Refact and adding me to contributor --- account_chart_report/__openerp__.py | 1 + account_chart_report/wizard/account_report_chart_of_account.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_chart_report/__openerp__.py b/account_chart_report/__openerp__.py index 9569f452..a2496a19 100644 --- a/account_chart_report/__openerp__.py +++ b/account_chart_report/__openerp__.py @@ -36,6 +36,7 @@ Contributors ------------ * Marc Cassuto (marc.cassuto@savoirfairelinux.com) * Mathieu Benoit (mathieu.benoit@savoirfairelinux.com) +* Guillaume Auger (guillaume.auger@savoirfairelinux.com) """, 'author': 'Savoir-faire Linux', diff --git a/account_chart_report/wizard/account_report_chart_of_account.py b/account_chart_report/wizard/account_report_chart_of_account.py index 7d16aef0..8e29813c 100644 --- a/account_chart_report/wizard/account_report_chart_of_account.py +++ b/account_chart_report/wizard/account_report_chart_of_account.py @@ -35,8 +35,7 @@ class ChartOfAccountsReport(models.TransientModel): @api.multi def print_report(self, data): - res = self.read()[0] - account_id = res["chart_account_id"][0] + account_id = self.chart_account_id.id data["form"] = {"id_account": account_id} return { 'type': 'ir.actions.report.xml',