Browse Source

[11.0][acount_fincancial_report] Fix test_open_items name issue

pull/585/head
Tonow-c2c 6 years ago
parent
commit
98a6dc9eb0
  1. 3
      account_financial_report/report/open_items.py
  2. 4
      account_financial_report/report/templates/open_items.xml
  3. 2
      account_financial_report/reports.xml
  4. 3
      account_financial_report/tests/test_open_items.py

3
account_financial_report/report/open_items.py

@ -155,6 +155,9 @@ class OpenItemsReportCompute(models.TransientModel):
self.ensure_one()
if report_type == 'xlsx':
report_name = 'a_f_r.report_open_items_xlsx'
elif report_type == 'qweb-html':
report_name = 'account_financial_report.' \
'report_open_items_html_qweb'
else:
report_name = 'account_financial_report.' \
'report_open_items_qweb'

4
account_financial_report/report/templates/open_items.xml

@ -11,6 +11,10 @@
</t>
</template>
<template id="account_financial_report.report_open_items_html_qweb">
<t t-call="account_financial_report.report_open_items_qweb"/>
</template>
<template id="account_financial_report.report_open_items_base">
<!-- Saved flag fields into variables, used to define columns display -->
<t t-set="foreign_currency" t-value="o.foreign_currency"/>

2
account_financial_report/reports.xml

@ -71,7 +71,7 @@
model="report_open_items"
string="Open Items"
report_type="qweb-html"
name="account_financial_report.report_open_items_qweb"
name="account_financial_report.report_open_items_html_qweb"
file="account_financial_report.report_open_items_html"
/>

3
account_financial_report/tests/test_open_items.py

@ -17,6 +17,9 @@ class TestOpenItems(a_t_f_c.AbstractTestForeignCurrency):
def _getQwebReportName(self):
return 'account_financial_report.report_open_items_qweb'
def _getHtmlReportName(self):
return 'account_financial_report.report_open_items_html_qweb'
def _getXlsxReportName(self):
return 'a_f_r.report_open_items_xlsx'

Loading…
Cancel
Save