I am trying to inherit payment button class in odoo 17 point of sale? How I override the method please some one guide me step by step what I do?. Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
Hi,
1./** @odoo-module */
import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen";
import { patch } from "@web/core/utils/patch";
patch(PaymentScreen.prototype, {
async validateOrder(isForceValidate) {
//Add your code
await super.validateOrder(...arguments);
},
});
2. Add your js file in Correct asset bundle.
'assets': {
'point_of_sale._assets_pos': [
//Add your file
],
},
Hope it helps
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
POS development in Odoo 17
Resuelto
|
|
1
may 24
|
3246 | |
|
3
mar 25
|
7155 | ||
|
0
may 22
|
3042 | ||
|
0
jun 25
|
269 | ||
|
2
may 25
|
775 |