Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1960 Представления

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
1167
1
дек. 23
1438
1
июл. 23
2467
2
окт. 24
6366
2
сент. 24
4336