Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1134 Widoki

Hello,

I want to hide the % Disc button on the Pos Screen. I have been following this video: https://www.youtube.com/watch?v=iwQhAB3Pz2Q&list=PLAR8TpPnVeTQ9Qqj1fCzImIEualrm3PRx&index=3

However, I am not able to find the xml code for the numpad in Odoo 17 in order to get the class of the button. Can anyone know where it is located?

Thanks.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

If you need to hide the discount button, Odoo provides a standard option to disable it without coding. Go to the configuration settings and uncheck the 'Line Discounts' option. This might solve your problem without any additional code. I hope this helps!


Awatar
Odrzuć
Najlepsza odpowiedź

In Odoo 17, the XML files for the POS (Point of Sale) interface are usually located within the point_of_sale module. The specific file you're looking for, which contains the numpad and the % Disc button, is likely in the views directory of the module.

Here's a general path where you might find it:

plaintextCopy codeodoo/addons/point_of_sale/views/pos_templates.xml

In this file, you should be able to locate the template related to the numpad, which includes the buttons. The button for % Disc is typically identified by a specific class or ID that you can use to hide it using custom XML or JavaScript.

If you're unable to locate the exact class for the button in the XML file, you can also inspect the element directly in your browser's developer tools while the POS is running. This will give you the class or ID that you can target in your custom code.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
paź 25
513
1
wrz 25
1407
2
wrz 25
1595
1
sie 25
1277
1
lip 25
1585