Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4649 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jan. 21
8717
2
okt. 21
5426
0
avg. 24
923
1
avg. 23
3679
0
okt. 22
571