Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3562 มุมมอง

Can anyone give me minimal code so that any method I can override for JS method? in pos odoo




changeMode(mode) { if (!this.hasPriceControlRights && mode === 'price' ) { return; } if (!this.hasManualDiscount && mode === 'discount') { return; } this.trigger('set-numpad-mode', { mode }); }


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Inherits the class of the method,Rewriting method

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 22
14348
2
เม.ย. 22
4475
1
ก.ค. 25
3876
10
ธ.ค. 24
31721
1
พ.ย. 23
10385