跳至內容
選單
此問題已被標幟
1 回覆
3314 瀏覽次數

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
14112
2
4月 22
4240
1
7月 25
3612
10
12月 24
31252
1
11月 23
10167