Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
1646 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
avr. 24
1032
1
mars 24
2309
3
sept. 18
3804
0
mars 15
4159
2
déc. 20
6822