Fix references to demo data in tests
commit
167bf476f0
|
@ -126,7 +126,7 @@ an issue in wkhtmltopdf
|
||||||
the header and footer are created as text with arguments passed to
|
the header and footer are created as text with arguments passed to
|
||||||
wkhtmltopdf. The texts are defined inside the report classes.
|
wkhtmltopdf. The texts are defined inside the report classes.
|
||||||
""",
|
""",
|
||||||
'version': '1.0.1',
|
'version': '1.0.2',
|
||||||
'author': 'Camptocamp',
|
'author': 'Camptocamp',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'category': 'Finance',
|
'category': 'Finance',
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
|
||||||
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
|
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
|
||||||
'amount_currency': True, 'result_selection': 'customer_supplier',
|
'amount_currency': True, 'result_selection': 'customer_supplier',
|
||||||
'partner_ids': [ref('base.res_partner_agrolait'), ref('base.res_partner_asus')]}
|
'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')]}
|
||||||
from tools import test_reports
|
from tools import test_reports
|
||||||
test_reports.try_report_action(cr, uid, 'action_account_open_invoices_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
|
test_reports.try_report_action(cr, uid, 'action_account_open_invoices_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
|
data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
|
||||||
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
|
'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
|
||||||
'amount_currency': True, 'result_selection': 'customer_supplier',
|
'amount_currency': True, 'result_selection': 'customer_supplier',
|
||||||
'partner_ids': [ref('base.res_partner_agrolait'), ref('base.res_partner_asus')]}
|
'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')]}
|
||||||
from tools import test_reports
|
from tools import test_reports
|
||||||
test_reports.try_report_action(cr, uid, 'action_account_partners_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
|
test_reports.try_report_action(cr, uid, 'action_account_partners_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue