diff --git a/addons/point_of_sale/test/point_of_sale_test.yml b/addons/point_of_sale/test/point_of_sale_test.yml index de6ca13e70a..c8ed72e386f 100755 --- a/addons/point_of_sale/test/point_of_sale_test.yml +++ b/addons/point_of_sale/test/point_of_sale_test.yml @@ -333,12 +333,11 @@ "WHERE user_id = %s ORDER BY journal_id"% (uid, )) jou_ids = map(lambda x1: x1[0], cr.fetchall()) journal_ids = jou_obj.search(cr, uid, [('auto_cash', '=', True), ('type', '=', 'cash'), ('id', 'in', jou_ids)], context=context) - for journal in jou_obj.browse(cr, uid, journal_ids, context=context): - ids = statement_obj.search(cr, uid, [('state', '=', 'open'), ('user_id', '=', uid), ('journal_id', '=', journal.id)], context=context) - if not ids: - self.open_statement(cr, uid, [ref("pos_open_statement_0")], {"lang": "en_US", "active_model": - "ir.ui.menu", "active_ids": [ref("point_of_sale.menu_open_statement")], "tz": - False, "active_id": ref("point_of_sale.menu_open_statement"), }) + ids = statement_obj.search(cr, uid, [('state', '=', 'open'), ('user_id', '=', uid), ('journal_id', 'in', journal_ids)], context=context) + if not ids: + self.open_statement(cr, uid, [ref("pos_open_statement_0")], {"lang": "en_US", "active_model": + "ir.ui.menu", "active_ids": [ref("point_of_sale.menu_open_statement")], "tz": + False, "active_id": ref("point_of_sale.menu_open_statement"), }) - I click on the "Make Payment" wizard. -