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
3574 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
14355
2
kwi 22
4486
1
lip 25
3882
10
gru 24
31737
1
lis 23
10392