Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1952 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mei 24
1162
1
Des 23
1434
1
Jul 23
2457
2
Okt 24
6354
2
Sep 24
4332