跳至内容
菜单
此问题已终结
1 回复
2089 查看
/** @odoo-module */
import { Component } from "@odoo/owl";
import { registry } from "@web/core/registry"

export class YourComponent extends Component {
static template = "your_module.YourComponent";
static props = {};
}

registry.category("public_components").add("your_module.YourComponent", YourComponent);


形象
丢弃
最佳答案

Hi,

There is no error the code you mentioned, if the error still exists try clearing your browser cache and restarting the Odoo server. Ensure that your module is properly declared in the __manifest__.py file and that it includes any necessary dependencies.

Hope it helps.

形象
丢弃
相关帖文 回复 查看 活动
1
7月 24
6633
3
7月 25
1842
1
6月 25
1945
2
5月 25
1823
1
5月 25
1087