Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3573 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
14354
2
apr. 22
4484
1
jul. 25
3881
10
dec. 24
31734
1
nov. 23
10391