تخطي للذهاب إلى المحتوى
القائمة
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
لقد تم الإبلاغ عن هذا السؤال
3 الردود
1591 أدوات العرض

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
أبريل 24
1002
1
مارس 24
2267
3
سبتمبر 18
3755
0
مارس 15
4112
2
ديسمبر 20
6798