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

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
14144
2
เม.ย. 22
4268
1
ก.ค. 25
3639
10
ธ.ค. 24
31283
1
พ.ย. 23
10193