diff --git a/README.md b/README.md index ae33141..9dae9aa 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,11 @@ This Odoo 19 module enhances the security and auditability of the Point of Sale - **Order Attribution**: - `Order Taker`: Records the employee who first authenticated for the table. - `Cashier`: Records the employee who authenticated for the payment. -- **UI Streamlining**: Removes manual "+ New Order" buttons to enforce a table-based workflow. +- **UI Streamlining**: + - Removes manual "+ New Order" buttons to enforce a table-based workflow. + - Hides the "Course" button on the POS UI. + - Hides the "Transfer Course" button on the POS UI. + - Hides the save order for later (upload icon) button from the POS UI. ## Dependencies diff --git a/__manifest__.py b/__manifest__.py index a1f4c1c..9cc3b22 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -8,6 +8,9 @@ - Enforce PIN entry on table selection - Enforce PIN entry on payment with role check - Record order creator and payer employees + - Hide "Course" button on POS UI + - Hide "Transfer Course" button on POS UI + - Hide "Save Order for Later" (upload) button on POS UI """, 'author': 'Suherdy Yacob', 'depends': ['pos_restaurant', 'pos_hr', 'pos_employee_role'], diff --git a/static/src/app/screens/product_screen/control_buttons/control_buttons.xml b/static/src/app/screens/product_screen/control_buttons/control_buttons.xml new file mode 100644 index 0000000..d7e7830 --- /dev/null +++ b/static/src/app/screens/product_screen/control_buttons/control_buttons.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/static/src/app/services/pos_store.js b/static/src/app/services/pos_store.js index ce1d140..c53e29a 100644 --- a/static/src/app/services/pos_store.js +++ b/static/src/app/services/pos_store.js @@ -107,4 +107,8 @@ patch(PosStore.prototype, { // Default to true if no role system return true; }, + + get showSaveOrderButton() { + return false; + }, });