Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3742 Vues

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
Ignorer
Meilleure réponse

Inherits the class of the method,Rewriting method

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mai 22
14576
2
avr. 22
4679
1
juil. 25
4100
10
déc. 24
32157
1
nov. 23
10583