跳至內容
選單
此問題已被標幟
1 回覆
2074 瀏覽次數
/** @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
6622
3
7月 25
1838
1
6月 25
1923
2
5月 25
1810
1
5月 25
1068