コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3400 ビュー

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


アバター
破棄
最善の回答

Inherits the class of the method,Rewriting method

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 22
14181
2
4月 22
4305
1
7月 25
3693
10
12月 24
31335
1
11月 23
10225