Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2320 Widoki

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
1630
1
gru 23
1662
1
lip 23
3303
4
cze 25
8325
2
paź 24
7353