Port account_chart_report to V8: small refact
parent
ebaa30e3f4
commit
acbe113e9c
|
@ -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…
Reference in New Issue