Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3307 Widoki

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 }); }


Awatar
Odrzuć
Najlepsza odpowiedź

Inherits the class of the method,Rewriting method

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 22
14109
2
kwi 22
4226
1
lip 25
3604
10
gru 24
31250
1
lis 23
10165