I want to override errordialog using my custom errordialog, but i cannot extend or include errordialog in js, the warning is extend or include not function in errordialog
example code
odoo.define('error_manager.test_error', function (require) {
"use strict";
console.log('Testsass');
var ErrorDialog = require("@web/core/errors/error_dialogs");
var session = require('web.session');
var rpc = require('web.rpc');
var Dialog = require('web.Dialog');
const {browser} = require("@web/core/browser/browser");
// var component = require("web.Registry");
// console.log(component);
var renewed_onclick = false;
const publicWidget = require('web.public.widget');
ErrorDialog.extend({
init:function(){console.log("Tes")};
});
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1509
Zobrazení
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se