Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2278 มุมมอง

I want to override errordialog with my custom module how to override the errordialog 

odoo.define("error_manager.custom_error_dialog", function (require) {    

"use strict";
    const { Component } =require("@odoo/owl");    

// const { ErrorDialog } = require("web.core").ErrorDialog;    

const { ErrorDialog } =  require("@web/core/errors/error_dialogs");    

const { registry } =  require("@web/core/registry");
    console.log("Custom");    // Extend the ErrorDialog component        ErrorDialog.include({        

init:function (parent, options, error) {            

console.log(error);        },    });});

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 24
1540
1
ธ.ค. 23
1630
1
ก.ค. 23
3206
4
มิ.ย. 25
8125
2
ต.ค. 24
7202