跳至內容
選單
此問題已被標幟
1986 瀏覽次數

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);        },    });});

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 24
1198
1
12月 23
1452
1
7月 23
2505
2
10月 24
6444
2
9月 24
4386