跳至内容
菜单
此问题已终结
1 回复
2736 查看

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
13300
2
4月 22
3555
10
12月 24
29864
1
11月 23
9422
0
11月 23
1613