Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2023 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 24
1256
1
dec. 23
1474
1
jul. 23
2622
2
okt. 24
6514
2
sep. 24
4478