İçereği Atla
Menü
Bu soru işaretlendi
2444 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
May 24
1787
1
Ara 23
1755
1
Tem 23
3558
4
Haz 25
8721
2
Eki 24
7625