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

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
14502
2
เม.ย. 22
4617
1
ก.ค. 25
4049
10
ธ.ค. 24
31985
1
พ.ย. 23
10546