Is there anyway to overwrite the createPublicKioskAttendance() via odoo owl js?
For ex: export async function createPublicKioskAttendance(document, kiosk_backend_info) {}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- โปรเจกต์
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Hi,
The patching method allows us to override a function without directly modifying the original code.
For example, use the following code and add your logic within the function:
/** @odoo-module */
import { patch } from '@web/core/utils/patch';
import { KioskAttendance } from '@web/views/Kiosk/attendance/KioskAttendance'; #consider this as path and class name as KioskAttendance
patch(KioskAttendance.prototype, {
async setup() {
super.setup();
},
async createPublicKioskAttendance(document, kiosk_backend_info) {
// you can write your logic here
}
});
Hope it helps.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ