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
3284 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
14099
2
dub 22
4206
1
čvc 25
3579
10
pro 24
31227
1
lis 23
10143