From acbe113e9ca33ff13c5fc1852820ee4f111dc532 Mon Sep 17 00:00:00 2001 From: Guillaume Auger Date: Wed, 28 Jan 2015 09:28:46 -0500 Subject: [PATCH] Port account_chart_report to V8: small refact --- .../wizard/account_report_chart_of_account.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 30254c78..7d16aef0 100644 --- a/account_chart_report/wizard/account_report_chart_of_account.py +++ b/account_chart_report/wizard/account_report_chart_of_account.py @@ -27,13 +27,12 @@ class ChartOfAccountsReport(models.TransientModel): _name = 'account.print.chart.accounts.report' _description = 'Chart of accounts Report' - domain_char_account = [('parent_id', '=', False)] - chart_account_id = fields.Many2one('account.account', 'Chart of Accounts', help='Select Charts of Accounts', required=True, - domain=domain_char_account) + domain=([('parent_id', '=', False)])) + @api.multi def print_report(self, data): res = self.read()[0]