Browse Source

Port account_chart_report to V8: small refact

pull/54/head
Guillaume Auger 10 years ago
parent
commit
acbe113e9c
  1. 5
      account_chart_report/wizard/account_report_chart_of_account.py

5
account_chart_report/wizard/account_report_chart_of_account.py

@ -27,13 +27,12 @@ class ChartOfAccountsReport(models.TransientModel):
_name = 'account.print.chart.accounts.report' _name = 'account.print.chart.accounts.report'
_description = 'Chart of accounts Report' _description = 'Chart of accounts Report'
domain_char_account = [('parent_id', '=', False)]
chart_account_id = fields.Many2one('account.account', chart_account_id = fields.Many2one('account.account',
'Chart of Accounts', 'Chart of Accounts',
help='Select Charts of Accounts', help='Select Charts of Accounts',
required=True, required=True,
domain=domain_char_account)
domain=([('parent_id', '=', False)]))
@api.multi @api.multi
def print_report(self, data): def print_report(self, data):
res = self.read()[0] res = self.read()[0]

Loading…
Cancel
Save