[FIX] point_of_sale: Set the correct cashier

After reopening the session in the POS by another user,
the cashier was not correctly identified.

Back-port of this commit: a9caef0ebb

opw:784422
This commit is contained in:
Goffin Simon
2018-05-09 16:06:51 +02:00
parent d595e3a258
commit 475027b988
@@ -272,6 +272,7 @@ exports.PosModel = Backbone.Model.extend({
// replace the current user with its updated version
if (user.id === self.user.id) {
self.user = user;
self.set_cashier(user);
}
}
self.users = pos_users;