Skip to Content
Menu
Du skal være registreret for at interagere med fællesskabet.
Dette spørgsmål er blevet anmeldt
3 Besvarelser
1661 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Bedste svar

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
apr. 24
1054
1
mar. 24
2323
3
sep. 18
3818
0
mar. 15
4172
2
dec. 20
6842