[MODULE] +v1.1.0 from https://www.odoo.com/apps/7.0/account_financial_report_webkit/
[burette/account_financial_report_webkit.git] / tests / open_invoices.yml
1 -
2 In order to test the PDF Open Invoices Report webkit wizard I will print report with default setting
3 -
4 !python {model: account.account}: |
5 from datetime import datetime
6 ctx={}
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')
10
11 -
12 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters and currency
13 -
14 !python {model: account.account}: |
15 from datetime import datetime
16 ctx={}
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')
22
23 -
24 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters on partners
25 -
26 !python {model: account.account}: |
27 from datetime import datetime
28 ctx={}
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')
35
36 -
37 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters on periods
38 -
39 !python {model: account.account}: |
40 from datetime import datetime
41 ctx={}
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')
48
49 -
50 In order to test the PDF Open Invoices Report webkit wizard I will print report with filters on dates
51 -
52 !python {model: account.account}: |
53 from datetime import datetime
54 ctx={}
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')