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
Pertanyaan ini telah diberikan tanda
1
Balas
4845
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
POS development in Odoo 17
Diselesaikan
|
|
1
Mei 24
|
6398 | |
|
|
3
Mar 25
|
11058 | ||
|
|
0
Mei 22
|
5297 | ||
|
|
0
Mei 26
|
901 | ||
|
|
0
Mei 26
|
924 |