跳至內容
選單
此問題已被標幟
1 回覆
4645 瀏覽次數

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!

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
1月 21
8712
2
10月 21
5425
0
8月 24
922
1
8月 23
3677
0
10月 22
571