Skip to Content
Menu
This question has been flagged
1 Atsakyti
4744 Rodiniai

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!

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
saus. 21
8875
2
spal. 21
5534
0
rugp. 24
990
1
rugp. 23
3745
0
spal. 22
571