2 In order to test the PDF Open Invoices Report webkit wizard I will print report with default setting
4 !python {model: account.account}: |
5 from datetime import datetime
7 data_dict = {'chart_account_id':ref('account.chart0'), 'until_date': '%s-12-31' %(datetime.now().year)}
8 from tools import test_reports
9 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')
12 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters and currency
14 !python {model: account.account}: |
15 from datetime import datetime
17 data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
18 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
19 'amount_currency': True, 'result_selection': 'customer_supplier'}
20 from tools import test_reports
21 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')
24 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters on partners
26 !python {model: account.account}: |
27 from datetime import datetime
29 data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
30 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
31 'amount_currency': True, 'result_selection': 'customer_supplier',
32 'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')]}
33 from tools import test_reports
34 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')
37 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters on periods
39 !python {model: account.account}: |
40 from datetime import datetime
42 data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
43 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
44 'amount_currency': True, 'result_selection': 'customer_supplier',
45 'filter': 'filter_period', 'period_from': ref('account.period_1'), 'period_to': ref('account.period_12')}
46 from tools import test_reports
47 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')
50 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters on dates
52 !python {model: account.account}: |
53 from datetime import datetime
55 data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
56 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
57 'amount_currency': True, 'result_selection': 'customer_supplier',
58 'filter': 'filter_date', 'date_from': '%s-01-01' %(datetime.now().year), 'date_to': '%s-12-31' %(datetime.now().year)}
59 from tools import test_reports
60 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')