Skip to Content
Menu
This question has been flagged
2317 Rodiniai

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
geg. 24
1628
1
gruod. 23
1661
1
liep. 23
3301
4
birž. 25
8318
2
spal. 24
7342