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

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
14155
2
4月 22
4281
1
7月 25
3651
10
12月 24
31302
1
11月 23
10204