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

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
14133
2
4月 22
4264
1
7月 25
3626
10
12月 24
31265
1
11月 23
10182