Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
1669 Visualizações

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

Avatar
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
abr. 24
1072
1
mar. 24
2329
3
set. 18
3829
0
mar. 15
4176
2
dez. 20
6851