Fix reports generation
parent
3d12c5e114
commit
a26b096f96
|
@ -19,6 +19,7 @@
|
|||
'date_range',
|
||||
'account_fiscal_year',
|
||||
'report_xlsx',
|
||||
'report',
|
||||
],
|
||||
'data': [
|
||||
'wizard/aged_partner_balance_wizard_view.xml',
|
||||
|
|
|
@ -190,11 +190,8 @@ class AgedPartnerBalanceReportCompute(models.TransientModel):
|
|||
self.compute_data_for_report()
|
||||
report_name = 'account_financial_report_qweb.' \
|
||||
'report_aged_partner_balance_qweb'
|
||||
return {
|
||||
'type': 'ir.actions.report.xml',
|
||||
'report_name': report_name,
|
||||
'datas': {'ids': [self.id]},
|
||||
}
|
||||
return self.env['report'].get_action(records=self,
|
||||
report_name=report_name)
|
||||
|
||||
@api.multi
|
||||
def compute_data_for_report(self):
|
||||
|
|
|
@ -189,11 +189,8 @@ class GeneralLedgerReportCompute(models.TransientModel):
|
|||
else:
|
||||
report_name = 'account_financial_report_qweb.' \
|
||||
'report_general_ledger_qweb'
|
||||
return {
|
||||
'type': 'ir.actions.report.xml',
|
||||
'report_name': report_name,
|
||||
'datas': {'ids': [self.id]},
|
||||
}
|
||||
return self.env['report'].get_action(records=self,
|
||||
report_name=report_name)
|
||||
|
||||
@api.multi
|
||||
def compute_data_for_report(self):
|
||||
|
|
|
@ -145,11 +145,8 @@ class OpenItemsReportCompute(models.TransientModel):
|
|||
self.ensure_one()
|
||||
self.compute_data_for_report()
|
||||
report_name = 'account_financial_report_qweb.report_open_items_qweb'
|
||||
return {
|
||||
'type': 'ir.actions.report.xml',
|
||||
'report_name': report_name,
|
||||
'datas': {'ids': [self.id]},
|
||||
}
|
||||
return self.env['report'].get_action(records=self,
|
||||
report_name=report_name)
|
||||
|
||||
@api.multi
|
||||
def compute_data_for_report(self):
|
||||
|
|
Loading…
Reference in New Issue