跳至内容
菜单
此问题已终结
2307 查看

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
1617
1
12月 23
1657
1
7月 23
3269
4
6月 25
8275
2
10月 24
7291