Skip to Content
Menu
This question has been flagged
1 Reply
3535 Views

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 }); }


Avatar
Discard
Best Answer

Inherits the class of the method,Rewriting method

Avatar
Discard
Related Posts Replies Views Activity
2
May 22
14307
2
Apr 22
4461
1
Jul 25
3843
10
Dec 24
31664
1
Nov 23
10347