[FIX] point_of_sale: exclude rescue session when getting the user current session

This revision is related to 0ea31c272c.

It's no longer really needed since the rescue sessions have been removed,
with the revision 87a3fe92de,
except for databases already having opened rescue sessions.

opw-653180
This commit is contained in:
Denis Ledoux
2015-10-30 17:10:44 +01:00
parent fba855a717
commit cd7d73a9a5
+1 -1
View File
@@ -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 = {