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
回复
2736
查看
Inherits the class of the method,Rewriting method
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
5月 22
|
13300 | ||
|
2
4月 22
|
3555 | ||
|
10
12月 24
|
29864 | ||
|
1
11月 23
|
9422 | ||
|
0
11月 23
|
1613 |