[FIX] point_of_sale: exclude rescue session when getting the user current session
This revision is related to0ea31c272c. It's no longer really needed since the rescue sessions have been removed, with the revision87a3fe92de, except for databases already having opened rescue sessions. opw-653180
This commit is contained in:
@@ -74,7 +74,7 @@ class pos_config(osv.osv):
|
||||
result = dict()
|
||||
|
||||
for record in self.browse(cr, uid, ids, context=context):
|
||||
result[record.id] = record.session_ids.filtered(lambda r: r.state == 'opened').user_id.name
|
||||
result[record.id] = record.session_ids.filtered(lambda r: r.state == 'opened' and not r.rescue).user_id.name
|
||||
return result
|
||||
|
||||
_columns = {
|
||||
|
||||
Reference in New Issue
Block a user