Skip to Content
Menu
This question has been flagged
1 Reply
3493 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
0
Jan 21
6722
2
Oct 21
4075
0
Aug 24
134
1
Aug 23
2474
0
Oct 22
571