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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
POS development in Odoo 17
Gelöst
|
|
1
Mai 24
|
3239 | |
|
3
März 25
|
7144 | ||
|
0
Mai 22
|
3036 | ||
|
0
Juni 25
|
264 | ||
|
2
Mai 25
|
757 |