[MODULE] +v1.1.0 from https://www.odoo.com/apps/7.0/account_financial_report_webkit/
[burette/account_financial_report_webkit.git] / tests / general_ledger.yml
1 -
2 In order to test the PDF General Ledger webkit wizard I will print report with default setting
3 -
4 !python {model: account.account}: |
5 ctx={}
6 data_dict = {'chart_account_id':ref('account.chart0')}
7 ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')],'active_id':ref('account.chart0')})
8 from tools import test_reports
9 test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
10
11 -
12 In order to test the PDF General Ledger webkit wizard I will print report with posted move
13 -
14 !python {model: account.account}: |
15 ctx={}
16 data_dict = {'chart_account_id':ref('account.chart0'), 'target_move': 'posted'}
17 ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')],'active_id':ref('account.chart0')})
18 from tools import test_reports
19 test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
20
21 -
22 In order to test the PDF General Ledger webkit wizard I will print report with transactions or non zero balance
23 -
24 !python {model: account.account}: |
25 ctx={}
26 data_dict = {'chart_account_id':ref('account.chart0'), 'display_account': 'bal_mix'}
27 ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')],'active_id':ref('account.chart0')})
28 from tools import test_reports
29 test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
30
31 -
32 In order to test the PDF General Ledger webkit wizard I will print report with inital balance and currency ammount
33 -
34 !python {model: account.account}: |
35 ctx={}
36 data_dict = {'chart_account_id':ref('account.chart0'), 'amount_currency': 1}
37 ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')],'active_id':ref('account.chart0')})
38 from tools import test_reports
39 test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
40
41 #Filter by date
42 -
43 In order to test the PDF General Ledger webkit wizard I will print report with inital balance and currency ammount and I filter by date of the first tree month
44 -
45 !python {model: account.account}: |
46 from datetime import datetime
47 ctx={}
48 data_dict = {'chart_account_id':ref('account.chart0'),'amount_currency': 1, 'chart_account_id': 1, 'date_from': '%s-01-01' %(datetime.now().year),
49 'date_to':'%s-04-01' %(datetime.now().year), 'display_account': 'bal_all', 'filter': 'filter_date',}
50 ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')],'active_id':ref('account.chart0')})
51 from tools import test_reports
52 test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
53
54 -
55 In order to test the PDF General Ledger webkit wizard I will print report with inital balance and currency ammount and I filter by date of the first tree month
56 -
57 !python {model: account.account}: |
58 from datetime import datetime
59 ctx={}
60 data_dict = {'chart_account_id':ref('account.chart0'),'amount_currency': 1, 'chart_account_id': 1, 'date_from': '%s-01-01' %(datetime.now().year),
61 'date_to':'%s-04-01' %(datetime.now().year), 'display_account': 'bal_all', 'filter': 'filter_date',}
62 ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')],'active_id':ref('account.chart0')})
63 from tools import test_reports
64 test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
65 # I still have to parse report content but for this I need accounting data on multiple exercises and faor all fiscal year