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

Hi, how to disable button disc on module point of sale on odoo12? thanks.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Using through code you can disable the discount button in the POS

var screens = require('point_of_sale.screens');

screens.ActionButtonWidget.include({
button_click: function () {
if (this.button_data.action === 'discount') {
// Disable the action for the Discount button
return;
}
this._super.apply(this, arguments);
},
});

Regards

Awatar
Odrzuć
Najlepsza odpowiedź

You can disable the button element in HTML by adding the disabled attribute to the element. The disabled attribute is a boolean attribute that allows you to disable an element, making the element unusable from the browser.

Greetings,
Peter

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Ananda Khairum Nur Fajr

You can achieve mention feature by purchasing third party application from Odoo Apps Store. Many of them are free with this feature.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 24
1192
1
mar 24
2432
3
wrz 18
3911
0
mar 15
4326
2
gru 20
6972