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