2 In order to test the Point of Sale module, I will open all cash registers through the wizard
4 I go to the window to open the cash registers as admin
6 !record {model: pos.open.statement, id: new_statement_open}:
8 I click on the button to open all statements/cash registers
10 !python {model: pos.open.statement}: |
11 self.open_statement(cr, uid, [ref('new_statement_open')], context={})
13 I check that I have some bank statements open for the admin user
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!'