[IMP] project: update the project sharing webclient and assets

Before this commit, we add the DebugMenu component in the project
sharing webclient but this one is displayed in the menu bar in backend.
In project sharing views, we don't display this menu. So, this component
is useless in project sharing.

This commit removes this component and also the menu_provider file in
the assets of project sharing.

Related PR: #73341

Part of task-2633229

closes #76098

Related: odoo/enterprise#20662
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
This commit is contained in:
Xavier BOL (xbo)
2021-09-07 17:03:06 +00:00
parent 1e71ba3995
commit d8a76aef55
2 changed files with 1 additions and 11 deletions
+1
View File
@@ -102,6 +102,7 @@
'project.webclient': [
('include', 'web.assets_backend'),
('remove', 'web/static/src/webclient/menu_service.js'),
('remove', 'web/static/src/webclient/commands/menu_providers.js'),
# Remove Longpolling bus and packages needed this bus
('remove', 'bus/static/src/js/services/assets_watchdog_service.js'),
@@ -1,11 +1,9 @@
/** @odoo-module **/
import { registry } from '@web/core/registry';
import { useBus, useEffect, useService } from '@web/core/utils/hooks';
import { ActionContainer } from '@web/webclient/actions/action_container';
import { MainComponentsContainer } from "@web/core/main_components_container";
import { useOwnDebugContext } from "@web/core/debug/debug_context";
import { DebugMenu } from "@web/core/debug/debug_menu";
import { ErrorHandler, NotUpdatable } from "@web/core/utils/components";
import { session } from '@web/session';
@@ -18,15 +16,6 @@ export class ProjectSharingWebClient extends Component {
this.user = useService("user");
useService("legacy_service_provider");
useOwnDebugContext({ categories: ["default"] });
if (this.env.debug) {
registry.category("systray").add(
"web.debug_mode_menu",
{
Component: DebugMenu,
},
{ sequence: 100 }
);
}
useBus(this.env.bus, "ACTION_MANAGER:UI-UPDATED", (mode) => {
if (mode !== "new") {
this.el.classList.toggle("o_fullscreen", mode === "fullscreen");