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 }); }
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
1
Відповісти
3315
Переглядів
Inherits the class of the method,Rewriting method
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
2
трав. 22
|
14112 | ||
|
2
квіт. 22
|
4240 | ||
|
1
лип. 25
|
3612 | ||
|
10
груд. 24
|
31254 | ||
|
1
лист. 23
|
10168 |