コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2321 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 24
1632
1
12月 23
1662
1
7月 23
3315
4
6月 25
8337
2
10月 24
7362