From b9658d87dd9ee6e51bbd7cafd768cc48376c38f1 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Tue, 2 Jun 2026 08:14:53 +0700 Subject: [PATCH] feat: hide invoice button and restyle partner button on POS payment screen --- README.md | 7 ++++++- __manifest__.py | 2 ++ .../screens/payment_screen/payment_screen_patch.xml | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 static/src/app/screens/payment_screen/payment_screen_patch.xml diff --git a/README.md b/README.md index 114a90f..3e8891e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,10 @@ Same approach for the order/cart display. - Scrolling loads more lines progressively - Ensures the selected line is always visible (expands count if needed) -### 3. Portrait Mode (6-inch Display) +### 3. Hide Invoice Button +Hides the "Invoice" button on the payment stage (Payment Screen) and expands the Customer/Partner button to full width, preventing cashiers from using this button. + +### 4. Portrait Mode (6-inch Display) A dedicated compact layout for portrait-orientation small screens. Designed for devices like 6-inch Android POS terminals where the standard Odoo two-column layout clutters the screen. @@ -123,6 +126,8 @@ pos_ui_optimization/ │ │ │ ├── order_display_patch.js # Incremental order line rendering │ │ │ └── order_display_patch.xml │ │ ├── screens/ +│ │ │ ├── payment_screen/ +│ │ │ │ └── payment_screen_patch.xml # Hide Invoice button patch │ │ │ └── product_screen/ │ │ │ ├── portrait_mode_patch.js # Tab state (products/cart/numpad) │ │ │ ├── portrait_screen.xml # Portrait layout XML patch diff --git a/__manifest__.py b/__manifest__.py index 5f21a88..570e32d 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -26,6 +26,8 @@ Features 'pos_ui_optimization/static/src/app/components/order_display/order_display_patch.xml', 'pos_ui_optimization/static/src/app/screens/product_screen/product_screen_patch.js', 'pos_ui_optimization/static/src/app/screens/product_screen/product_screen_patch.xml', + # Payment screen patches + 'pos_ui_optimization/static/src/app/screens/payment_screen/payment_screen_patch.xml', # Portrait mode — service must load first 'pos_ui_optimization/static/src/app/services/portrait_mode.js', # Navbar display-mode toggle diff --git a/static/src/app/screens/payment_screen/payment_screen_patch.xml b/static/src/app/screens/payment_screen/payment_screen_patch.xml new file mode 100644 index 0000000..34d511d --- /dev/null +++ b/static/src/app/screens/payment_screen/payment_screen_patch.xml @@ -0,0 +1,11 @@ + + + + + false + + + button partner-button btn btn-lg w-100 lh-lg text-truncate + + +