Hi, how to disable button disc on module point of sale on odoo12? thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
3
回复
1595
查看
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
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
|
1007 | ||
|
1
3月 24
|
2274 | ||
|
3
9月 18
|
3760 | ||
|
0
3月 15
|
4122 | ||
|
2
12月 20
|
6801 |