[TEST]
[odoo/odoo.git] / addons / account / test / chart_of_account.yml
1 -
2  In order to check the Chart of Accounts wizard  I run the wizard with target move set as all
3
4 -
5   !record {model: account.chart, id: account_chart_0}:
6     target_move: all
7 -
8   I clicked on Open chart Button to open the chart
9 -
10   !python {model: account.chart}: |
11     self.account_chart_open_window(cr, uid, [ref("account_chart_0")], {"lang": 'en_US',
12       "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_account_tree2")],
13       "tz": False, "active_id": ref("account.menu_action_account_tree2"), })
14
15 -
16   I create chart of accounts with target move set as posted
17 -
18   !record {model: account.chart, id: account_chart_0}:
19     target_move: posted
20 -
21   I clicked on Open chart Button to open the chart
22 -
23   !python {model: account.chart}: |
24     self.account_chart_open_window(cr, uid, [ref("account_chart_0")], {"lang": 'en_US',
25       "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_account_tree2")],
26       "tz": False, "active_id": ref("account.menu_action_account_tree2"), })
27
28 #-
29 #  In order to test Account Move Line Wizard I check the move line entries using this wizard
30 #-
31 #  !record {model: account.move.line.select, id: account_move_line_select_0}:
32 #    {}
33 #-
34 #  I clicked on Button to open the account move lines
35 #-
36 #  !python {model: account.move.line.select}: |
37 #    self.open_window(cr, uid, [ref("account_move_line_select_0")], {"lang": 'en_US',
38 #      "state": "all", "tz": False, "active_model": "account.account", "active_ids":
39 #      [ref("account.a_recv")], "fiscalyear": 1, "active_id": ref("account.a_recv"),
40 #      })
41 -
42   In order to test the Analytic Charts of Account wizard I will generate chart
43
44 -
45   !record {model: account.analytic.chart, id: account_analytic_chart_0}:
46     from_date: !eval "'%s-01-01' %(datetime.now().year)"
47     to_date: !eval "'%s-06-30' %(datetime.now().year)"
48 -
49   I clicked on Open chart Button to open the charts
50
51 -
52   !python {model: account.analytic.chart}: |
53     self.analytic_account_chart_open_window(cr, uid, [ref("account_analytic_chart_0")],
54       {"lang": 'en_US', "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_analytic_account_tree2")],
55       "tz": False, "active_id": ref("account.menu_action_analytic_account_tree2"),
56       })
57
58 -
59   In order to test Account Journal Select wizard I open journal entries using this wizard
60 -
61   !record {model: account.journal.select, id: account_journal_select_0}:
62     {}
63 -
64   I clicked on Open Journal Button to open the entries
65
66 -
67   !python {model: account.journal.select}: |
68     self.action_open_window(cr, uid, [ref("account_journal_select_0")], {"lang":
69       'en_US', "active_model": "account.journal.period", "active_ids": [ref("account.a_recv")],
70       "tz": False, "active_id": ref("account.a_recv"), })
71 -
72   I check that the entries open successfully
73