跳至內容
選單
此問題已被標幟
3 回覆
1622 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
4月 24
1021
1
3月 24
2284
3
9月 18
3769
0
3月 15
4142
2
12月 20
6811