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',