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 }); }
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
3314
瀏覽次數
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 |