Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3555 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
14345
2
abr 22
4473
1
jul 25
3872
10
dic 24
31718
1
nov 23
10383