This commit is contained in:
qitangbo
2026-09-21 19:40:38 +08:00
parent ba32af9e04
commit 84df154ce2
3 changed files with 80 additions and 0 deletions
+1
View File
@@ -58,6 +58,7 @@
'assets': { 'assets': {
'web.assets_backend': [ 'web.assets_backend': [
'college/static/src/scss/college_theme.scss', 'college/static/src/scss/college_theme.scss',
'college/static/src/js/hide_company_menu.js',
], ],
'web.assets_web_dark': [ 'web.assets_web_dark': [
'college/static/src/scss/college_theme_dark.scss', 'college/static/src/scss/college_theme_dark.scss',
+60
View File
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * college
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-21 11:31:00+0000\n"
"PO-Revision-Date: 2026-09-21 11:31:00+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Language: zh_CN\n"
#. module: base
#: model:ir.module.category,name:base.module_category_education
msgid "Education"
msgstr "教育"
#. module: base
#: model:ir.module.category,name:base.module_category_game
msgid "Game"
msgstr "游戏"
#. module: base
#: model:ir.module.category,name:base.module_category_backend
msgid "Backend"
msgstr "后端"
#. module: base
#: model:ir.module.category,name:base.module_category_themes
msgid "Themes"
msgstr "主题"
# 以下四项 base 自带翻译已存在,这里补一份,
# 保证 college 模块单独升级时这几个类别也一定是中文。
#. module: base
#: model:ir.module.category,name:base.module_category_tools
#: model:ir.module.category,name:base.module_category_hidden_tools
msgid "Tools"
msgstr "工具"
#. module: base
#: model:ir.module.category,name:base.module_category_uncategorized
msgid "Uncategorized"
msgstr "未分类"
#. module: base
#: model:ir.module.category,name:base.module_category_localization
msgid "Localization"
msgstr "本地化"
#. module: base
#: model:ir.module.category,name:base.module_category_manufacturing_maintenance
msgid "Maintenance"
msgstr "维修"
@@ -0,0 +1,19 @@
/**
* 隐藏导航栏「公司切换器」(YourCompany 那一块)
*
* 原理:Odoo 导航栏右侧的系统托盘 (systray) 是一个组件注册表,
* web 模块在启动时把 SwitchCompanyMenu 注册了进去(见
* odoo18/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js
* 最后一行 registry.category("systray").add(...))。
* 这里在资源包加载阶段把它从注册表里摘掉,导航栏就不会渲染它。
*
* 单公司场景下该组件无意义;如需恢复,删除本文件并把
* __manifest__.py assets 里对应的一行去掉即可。
*
* 注意:本文件改动需要「升级模块 + 重启」才会生效
* (-d <库名> -u college 重启主进程),并强刷浏览器 (Ctrl+Shift+R)。
*/
/** @odoo-module **/
import { registry } from "@web/core/registry";
registry.category("systray").remove("SwitchCompanyMenu");