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:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
0
апр. 24
|
918 | ||
Unable to update PoS config
Решено
|
|
1
мар. 24
|
2198 | |
|
3
сент. 18
|
3673 | ||
|
0
мар. 15
|
4012 | ||
|
2
дек. 20
|
6668 |