Is there any way to configure/edit the POS mobile menu page to remove the "My Orders" button. When a customer finishes (has paid) for their order on the mobile menu site created from the POS app they are returned to the splash screen where they originally started by clicking on the "Order Now" button but now there is a "My Orders" button. How can this "My Orders" button be removed or disabled?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
Hi,
Solution via QWeb Template Override (Best)
You need to inherit and override the template that renders the POS Mobile UI splash page. The "My Orders" button is controlled by a condition ( t-if="showOrders" or similar).
Step 1: Identify Template
Look for:
point_of_sale.splash_screen_template
or
point_of_sale.mobile_mini_splash_template
It typically looks like this:
<t t-if = "showOrders"> <a class = "btn btn-secondary" t-attf-href = "/pos/my/orders" > My Orders </a> </t>
Step 2: Override the Template in Your Module
<odoo> <template id = "remove_my_orders_button" inherit_id = "point_of_sale.splash_screen_template"> <xpath expr = "//a[contains(@href, '/pos/my/orders')]" position = "replace"/> </template> </odoo>
This completely removes the "My Orders" button, regardless of t-if.
If it's a different template in your Odoo version (like point_of_sale.mobile_splash_template), use that instead.
Step 3: Load This in Your Manifest
{ ... "depends" : [ "point_of_sale" ], "data" : [ "views/pos_mobile_remove_my_orders.xml", ], }
I hope it is usefull
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
2
Juli 25
|
1039 | ||
|
2
Apr. 25
|
882 | ||
|
2
März 25
|
1045 | ||
Product variants website
Gelöst
|
|
1
März 25
|
457 | |
|
2
Juli 25
|
1088 |