Browse Source

Fix reports generation

pull/367/head
jcoux 8 years ago
committed by Jordi Ballester
parent
commit
a26b096f96
  1. 1
      account_financial_report_qweb/__openerp__.py
  2. 7
      account_financial_report_qweb/report/aged_partner_balance.py
  3. 7
      account_financial_report_qweb/report/general_ledger.py
  4. 7
      account_financial_report_qweb/report/open_items.py

1
account_financial_report_qweb/__openerp__.py

@ -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',

7
account_financial_report_qweb/report/aged_partner_balance.py

@ -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 {
'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 @api.multi
def compute_data_for_report(self): def compute_data_for_report(self):

7
account_financial_report_qweb/report/general_ledger.py

@ -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 {
'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 @api.multi
def compute_data_for_report(self): def compute_data_for_report(self):

7
account_financial_report_qweb/report/open_items.py

@ -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 {
'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 @api.multi
def compute_data_for_report(self): def compute_data_for_report(self):

Loading…
Cancel
Save