odoo15 owl main.js分析

本文探讨了Odoo15中owl main.js文件的作用,指出该文件启动webclient,允许在企业版中进行替换。主要内容涉及webclient的子类及其包含的主要事件和组件,同时预告了未来对web.WebClient的深入学习。
摘要由CSDN通过智能技术生成

看看odoo如何使用owl

/** @odoo-module **/

import { startWebClient } from "./start";
import { WebClient } from "./webclient/webclient";

/**
 * This file starts the webclient. It is in its own file to allow its replacement
 * in enterprise. The enterprise version of the file uses its own webclient import,
 * which is a subclass of the above Webclient.
 */

startWebClient(WebClient);

main.js就这一行代码,去了哪里,并且说,

此文件将启动webclient。它在自己的文件中,在企业版允许替换它。该文件的企业版使用自己的webclient导入,它是上述Webclient的子类。

通过查看webclient是个什么

/** @odoo-module **/

import { ActionContainer } from "./actions/action_container";
import { NavBar } from "./navbar/navbar";
import { useBus, useEffect, useService } from "
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

信息化未来

你的鼓励将是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值