From fb02a61111623b8f7abe39382a6cb75425ef3361 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Thu, 6 Feb 2025 15:32:07 +0530 Subject: [PATCH] Feb 06 [UPDT] : Updated 'pos_access_right_hr' --- pos_access_right_hr/__manifest__.py | 2 +- pos_access_right_hr/doc/RELEASE_NOTES.md | 5 +++++ pos_access_right_hr/static/src/js/ActionpadWidget.js | 2 +- pos_access_right_hr/static/src/js/ProductScreen.js | 8 ++++++++ pos_access_right_hr/static/src/xml/ActionpadWidget.xml | 7 +++++++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/pos_access_right_hr/__manifest__.py b/pos_access_right_hr/__manifest__.py index 7ab435ee0..223ab766a 100644 --- a/pos_access_right_hr/__manifest__.py +++ b/pos_access_right_hr/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': 'POS Access Right', - 'version': '17.0.2.1.1', + 'version': '17.0.2.1.2', "category": 'Point of Sale', 'summary': 'To Restrict POS features for cashiers', 'description': 'This app allows you to enable or disable POS features ' diff --git a/pos_access_right_hr/doc/RELEASE_NOTES.md b/pos_access_right_hr/doc/RELEASE_NOTES.md index 881d2f458..64db7ec05 100644 --- a/pos_access_right_hr/doc/RELEASE_NOTES.md +++ b/pos_access_right_hr/doc/RELEASE_NOTES.md @@ -10,3 +10,8 @@ #### Version 17.0.2.1.1 ##### ADD - Bug fix + +#### 17.05.2024 +#### Version 17.0.2.1.2 +##### BUG_FIX +- Bug fix: Payment button on the tab screen is no longer restricted in portrait mode. diff --git a/pos_access_right_hr/static/src/js/ActionpadWidget.js b/pos_access_right_hr/static/src/js/ActionpadWidget.js index 61a86ae68..a439863c0 100644 --- a/pos_access_right_hr/static/src/js/ActionpadWidget.js +++ b/pos_access_right_hr/static/src/js/ActionpadWidget.js @@ -15,8 +15,8 @@ patch(ActionpadWidget.prototype, { } }, disable_payment() { - console.log(this.pos.cashier?.disable_customer) if (this.pos.cashier?.disable_payment) { + return true; } else { return false; diff --git a/pos_access_right_hr/static/src/js/ProductScreen.js b/pos_access_right_hr/static/src/js/ProductScreen.js index 0c9340e3f..fb9ac350b 100644 --- a/pos_access_right_hr/static/src/js/ProductScreen.js +++ b/pos_access_right_hr/static/src/js/ProductScreen.js @@ -31,5 +31,13 @@ patch(ProductScreen.prototype, { ...button, class: this.pos.numpadMode === button.value ? "active border-primary" : "", })); + }, + disable_payment() { + if (this.pos.cashier?.disable_payment) { + + return true; + } else { + return false; + } } }); diff --git a/pos_access_right_hr/static/src/xml/ActionpadWidget.xml b/pos_access_right_hr/static/src/xml/ActionpadWidget.xml index 046dc9b8a..5ff647ffd 100644 --- a/pos_access_right_hr/static/src/xml/ActionpadWidget.xml +++ b/pos_access_right_hr/static/src/xml/ActionpadWidget.xml @@ -10,4 +10,11 @@ disable_customer() + + + + disable_payment() + +