From d84c482c8489417d658a05bc642f02ea982f7157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Thu, 8 Oct 2026 19:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=8F=9C=E5=8D=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- college/__manifest__.py | 3 ++- college/static/src/xml/sidenav_tooltip.xml | 29 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 college/static/src/xml/sidenav_tooltip.xml diff --git a/college/__manifest__.py b/college/__manifest__.py index 1195b10..6dfba06 100644 --- a/college/__manifest__.py +++ b/college/__manifest__.py @@ -1,6 +1,6 @@ { 'name': '教育', - 'version': '18.0.3.0.7', + 'version': '18.0.3.0.9', 'summary': 'Odoo 18 教学管理平台 — 师生管理 + 课程管理 + 作业/进展(老师·学生双角色)', 'description': """ Odoo 18 教学管理平台(面向老师与学生,双角色权限) @@ -63,6 +63,7 @@ 'college/static/src/js/hide_activity_menu.js', 'college/static/src/js/portal_indicator.js', 'college/static/src/xml/portal_indicator.xml', + 'college/static/src/xml/sidenav_tooltip.xml', ], 'web.assets_web_dark': [ 'college/static/src/scss/college_theme_dark.scss', diff --git a/college/static/src/xml/sidenav_tooltip.xml b/college/static/src/xml/sidenav_tooltip.xml new file mode 100644 index 0000000..915df40 --- /dev/null +++ b/college/static/src/xml/sidenav_tooltip.xml @@ -0,0 +1,29 @@ + + + + + + { + href: getMenuItemHref(app), + 'data-menu-xmlid': app.xmlid, + 'data-section': app.id, + 'data-tooltip': ue.sidenavWidth < 142 ? (app.label or app.name) : false, + 'data-tooltip-position': 'right' + } + + +