Skip to Content
मेन्यू
This question has been flagged

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

Avatar
Discard
Related Posts Replies Views Activity
2
मई 24
1795
1
दिस॰ 23
1762
1
जुल॰ 23
3565
4
जून 25
8734
2
अक्तू॰ 24
7633