Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3304 Vistas

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
Descartar
Mejor respuesta

Inherits the class of the method,Rewriting method

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 22
14108
2
abr 22
4222
1
jul 25
3604
10
dic 24
31249
1
nov 23
10165