Skip to Content
मेन्यू
This question has been flagged
1 Reply
3416 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
मई 22
14222
2
अप्रैल 22
4333
1
जुल॰ 25
3730
10
दिस॰ 24
31419
1
नव॰ 23
10262