合并企业版代码(未测试,先提交到测试分支)
This commit is contained in:
17
web_enterprise/static/src/webclient/webclient.js
Normal file
17
web_enterprise/static/src/webclient/webclient.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { WebClient } from "@web/webclient/webclient";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { EnterpriseNavBar } from "./navbar/navbar";
|
||||
|
||||
export class WebClientEnterprise extends WebClient {
|
||||
setup() {
|
||||
super.setup();
|
||||
this.hm = useService("home_menu");
|
||||
useService("enterprise_legacy_service_provider");
|
||||
}
|
||||
_loadDefaultApp() {
|
||||
return this.hm.toggle(true);
|
||||
}
|
||||
}
|
||||
WebClientEnterprise.components = { ...WebClient.components, NavBar: EnterpriseNavBar };
|
||||
Reference in New Issue
Block a user