Skip to Content
Menu
This question has been flagged
1 Odpoveď
3346 Zobrazenia

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 }); }


Avatar
Zrušiť
Best Answer

Inherits the class of the method,Rewriting method

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
máj 22
14138
2
apr 22
4265
1
júl 25
3632
10
dec 24
31273
1
nov 23
10188