From 9b97764ed0b0a02b0063fa609d4fa68baa34172e Mon Sep 17 00:00:00 2001 From: Robin Heinz Date: Thu, 4 Feb 2021 13:12:45 +0000 Subject: [PATCH] We remove the "close session" button to prevent an employee to have access to the back end if not eligible. For example: User A start a pos session. Employee B, not related to User A, could close the session and have access to the back end as User A. This commit also allows to display the select cashier popup correctly in mobile view. Task-id: 2244289 --- addons/point_of_sale/static/src/css/pos.css | 4 ++++ addons/pos_hr/static/src/css/pos.css | 5 ----- addons/pos_hr/static/src/js/LoginScreen.js | 3 --- addons/pos_hr/static/src/xml/LoginScreen.xml | 5 ----- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index b8918f25173..282f1dba4a1 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -3603,3 +3603,7 @@ td { bottom: 5%; font-size: 17px; } + +.pos .pos-topheader .oe_status:hover { + background: rgb(104,69,95); +} diff --git a/addons/pos_hr/static/src/css/pos.css b/addons/pos_hr/static/src/css/pos.css index 3d27b1fd634..eb4a75ef547 100644 --- a/addons/pos_hr/static/src/css/pos.css +++ b/addons/pos_hr/static/src/css/pos.css @@ -101,11 +101,6 @@ border-color: #00A09D; height: 38px; } - .pos .popups .popup-selection { - width: 90%; - left: initial; - right: initial; - } .pos .login-barcode-text { color: #adb5bd; margin-top: 8px; diff --git a/addons/pos_hr/static/src/js/LoginScreen.js b/addons/pos_hr/static/src/js/LoginScreen.js index bf93abeb0af..a6a6a94d4f1 100644 --- a/addons/pos_hr/static/src/js/LoginScreen.js +++ b/addons/pos_hr/static/src/js/LoginScreen.js @@ -30,9 +30,6 @@ odoo.define('pos_hr.LoginScreen', function (require) { get shopName() { return this.env.pos.config.name; } - closeSession() { - this.trigger('close-pos'); - } async selectCashier() { const list = this.env.pos.employees.map((employee) => { return { diff --git a/addons/pos_hr/static/src/xml/LoginScreen.xml b/addons/pos_hr/static/src/xml/LoginScreen.xml index 5d96f2b1538..84b0bcfe3a6 100644 --- a/addons/pos_hr/static/src/xml/LoginScreen.xml +++ b/addons/pos_hr/static/src/xml/LoginScreen.xml @@ -18,11 +18,6 @@ t-on-click="selectCashier">Select Cashier -