[IMP] pos: made changes in the search method i.e.('journal_id', 'in', journal_ids)
bzr revid: mtr@mtr-20110112131702-hrnziixhx23kl6tz
This commit is contained in:
parent
9373a62161
commit
e831341d98
|
@ -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.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue