[TEST]
[odoo/odoo.git] / addons / account / test / account_fiscalyear_close_state.yml
1 -
2   I run the Close a Fiscalyear wizard to close the demo fiscalyear
3 -
4   !record {model: account.fiscalyear.close.state, id: account_fiscalyear_close_state_0}:
5     fy_id: data_fiscalyear
6 -
7   I clicked on Close States Button to close fiscalyear
8
9 -
10   !python {model: account.fiscalyear.close.state}: |
11     self.data_save(cr, uid, [ref("account_fiscalyear_close_state_0")], {"lang": 'en_US',
12       "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_wizard_fy_close_state")],
13       "tz": False, "active_id": ref("account.menu_wizard_fy_close_state"), })
14 -
15   I check that the fiscalyear state is now "Done"
16 -
17   !assert {model: account.fiscalyear, id: data_fiscalyear, string: Fiscal Year is in Done state}:
18     - state == 'done'
19