Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2396 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
maj 24
1707
1
dec. 23
1715
1
jul. 23
3467
4
jun. 25
8599
2
okt. 24
7533