Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4751 Visninger

Hello,

I've tried to inherit an owl JS class but it doesn't work. Is anyone know how to inherit it please?

class ActionMenus extends Component {...}

Best regards!

Avatar
Kassér
Bedste svar

Hi,

Can you try this code

odoo.define('custom_module.ActionMenus', function (require) {
"use strict";

const AbstractModel = require('web.AbstractModel');
const session = require('web.session');
const component = require('webb_model.Component');
const core = require('web.core');
const _t = core._t;

class ActionMenus extends component__load: function (params) { }}

Regards

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jan. 21
8883
2
okt. 21
5542
0
aug. 24
993
1
aug. 23
3749
0
okt. 22
571