[IMP] point_of_sale: new weighting workflow
[odoo/odoo.git] / addons / point_of_sale / test / 00_register_open.yml
1 -
2   In order to test the Point of Sale module, I will open all cash registers through the wizard
3 -
4   I go to the window to open the cash registers as admin
5 -
6   !record {model: pos.open.statement, id: new_statement_open}:
7
8   I click on the button to open all statements/cash registers
9
10   !python {model: pos.open.statement}: |
11     self.open_statement(cr, uid, [ref('new_statement_open')], context={})
12
13   I check that I have some bank statements open for the admin user
14
15   !python {model: account.bank.statement}: |
16     ids = self.search(cr, uid, [('state', 'in', ('open','new')), ('user_id', '=', 1)])
17     assert (len(ids)>0), 'No statement open for the admin user!'