From 359a11af1f4e0f69451c8178be27a04002b992b5 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Tue, 26 May 2026 09:16:16 +0700 Subject: [PATCH] feat: hide time filter group from KDS sidebar via XML template patch --- README.md | 5 +++++ __manifest__.py | 1 + .../preparation_display/preparation_display.xml | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 static/src/app/components/preparation_display/preparation_display.xml diff --git a/README.md b/README.md index 705a956..1a7e44a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,11 @@ Additionally, this module preserves timer continuity for orders and lines on the - Upgrading the module automatically executes a post-install data migration. - It copies historical sums into the new average-specific database columns, preventing the average columns from appearing blank for pre-existing records. +### 5. Hide Time Grouping in KDS Sidebar +- The **Time** filter group (Now / Today / Tomorrow / Next days) is removed from the KDS sidebar. +- All other sidebar sections (Preset, Product Categories, zoom controls, Clear All Orders) remain fully functional. +- Implemented via an OWL template XPath patch (`t-inherit`) so no core Odoo files are modified. + --- ## Installation diff --git a/__manifest__.py b/__manifest__.py index 1101d14..59736a6 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -18,6 +18,7 @@ 'pos_preparation_display.assets': [ 'pos_kds_report/static/src/app/models/pos_preparation_state.js', 'pos_kds_report/static/src/app/services/preparation_display_service.js', + 'pos_kds_report/static/src/app/components/preparation_display/preparation_display.xml', ], }, 'installable': True, diff --git a/static/src/app/components/preparation_display/preparation_display.xml b/static/src/app/components/preparation_display/preparation_display.xml new file mode 100644 index 0000000..c260f02 --- /dev/null +++ b/static/src/app/components/preparation_display/preparation_display.xml @@ -0,0 +1,14 @@ + + + + + + + + +