Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3067 Zobrazení

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šit
Nejlepší odpověď

Inherits the class of the method,Rewriting method

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 22
13780
2
dub 22
3995
10
pro 24
30844
1
lis 23
9964
0
lis 23
2045