Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
1678 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
dub 24
1077
1
bře 24
2334
3
zář 18
3840
0
bře 15
4185
2
pro 20
6863