Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3305 Prikazi

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
Opusti
Best Answer

Inherits the class of the method,Rewriting method

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 22
14109
2
apr. 22
4225
1
jul. 25
3604
10
dec. 24
31249
1
nov. 23
10165