[MERGE] [FIX] pos: prevent two users opening the same session
lp bug: https://launchpad.net/bugs/1098226 fixed bzr revid: mat@openerp.com-20130620154608-7u8pci09muxedvje
This commit is contained in:
commit
10f170d975
|
@ -87,6 +87,7 @@ class pos_session_opening(osv.osv_memory):
|
|||
session_ids = proxy.search(cr, uid, [
|
||||
('state', '!=', 'closed'),
|
||||
('config_id', '=', config_id),
|
||||
('user_id', '=', uid),
|
||||
], context=context)
|
||||
if session_ids:
|
||||
session = proxy.browse(cr, uid, session_ids[0], context=context)
|
||||
|
|
Loading…
Reference in New Issue