From 475027b9889c0701f8fe5e0373a40663f6a831e1 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 12 Dec 2017 15:16:46 +0100 Subject: [PATCH] [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: a9caef0ebbc7f3288e06f352f5bb817861e9689c opw:784422 --- addons/point_of_sale/static/src/js/models.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 25b31fd0b8f..37c115973c4 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -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;