From 1f985e96c7b852f0e41bde182de20d95db0acce3 Mon Sep 17 00:00:00 2001 From: qitangbo Date: Mon, 19 Oct 2026 17:01:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(college):=20=E5=AE=9E=E8=AE=AD=E7=99=BD?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E4=BF=AE=E6=AD=A347->50=E2=80=94=E2=80=94?= =?UTF-8?q?=E7=A7=BB=E5=87=BA3=E4=B8=AAapplication=3DFalse=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E6=9C=89=E6=A8=A1=E5=9D=97=EF=BC=88yuthon=5Fcontract/?= =?UTF-8?q?yuthon=5Fhr=5Femployee/yuthon=5Fweb=EF=BC=8C=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E6=8D=A2=E5=85=A5fleet(=E8=BD=A6=E8=BE=86)/repair(=E7=BB=B4?= =?UTF-8?q?=E4=BF=AE)/hr=5Fcontract(=E5=91=98=E5=B7=A5=E5=90=88=E5=90=8C)?= =?UTF-8?q?=E4=B8=89=E4=B8=AAapplication=3DTrue=E7=9A=84=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=9B=E7=94=9F=E4=BA=A7=E5=BA=93=E5=AE=9E=E6=B5=8B=E6=96=B0?= =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=9550/50=E5=85=A8=E9=83=A8=E5=8F=AF?= =?UTF-8?q?=E8=A7=81=EF=BC=9B=E6=B3=A8=E9=87=8A=E8=A1=A5=E5=85=85applicati?= =?UTF-8?q?on=E6=A0=87=E5=BF=97=E6=95=99=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- college/data/shixun_module_data.xml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/college/data/shixun_module_data.xml b/college/data/shixun_module_data.xml index bcd6305..4b10051 100644 --- a/college/data/shixun_module_data.xml +++ b/college/data/shixun_module_data.xml @@ -14,18 +14,23 @@ 跨数据库不一致(企业库与本地库映射完全不同,极易误伤,旧注释的映射已作废); 2026-10-19 改为白名单:按模块名(跨库稳定),且显示内容完全可控。 名单构成(共 50 个): - 1) 自有模块 27 个——agent_* 智能体平台、college(教育)、school_base、 + 1) 自有模块 24 个——agent_* 智能体平台、college(教育)、school_base、 student_organization、learning_center、odoosh_connector、yuthon_* 人事薪酬系列、 game_* / yt_world / yusen_website 宇森游戏与官网; - 2) Odoo 原生精选 23 个——销售/CRM/采购/库存/财务/POS/项目/人事/制造/质量/ - 维护/服务台/知识/网站/在线学习等教学实训常用套件。 + 2) Odoo 原生精选 26 个——销售/CRM/采购/库存/财务/POS/项目/人事/制造/质量/ + 维护/服务台/知识/网站/在线学习/车辆/维修/员工合同等教学实训常用套件。 未列入的说明: - school(未安装,且与 college 重名「教育」,避免列表出现两张同名卡片); - lucky_theme_backend / many2many_tags_preview / omux_menu_center(第三方 UI 模块); - 其余 Odoo 原生小应用(estate/will_task/data_recycle/room/lunch 等)。 + 血泪教训(2026-10-19 实测后补充):domain 含 ('application','=',True), + **manifest 里 application=False 的模块列进白名单也不会显示**——曾因此只显示 47 个 + (yuthon_contract / yuthon_hr_employee / yuthon_web 三个功能扩展模块不显示, + 已移出名单,换入 fleet / repair / hr_contract 三个 application=True 的补足 50)。 + 今后新增名单条目时,务必先在目标库确认 application=True。 维护:新装的自有模块必须往本清单里加,否则不会显示;总数超过 50 时 module_list_cap.js 把显示硬顶在 50(第 2 页点不动、每页数锁定)。 --> - [('application', '=', True), ('name', 'in', ['account', 'accountant', 'agent_api', 'agent_channel', 'agent_core', 'agent_market', 'agent_payment', 'agent_portal', 'college', 'crm', 'game_ai_npc', 'game_base', 'helpdesk', 'hr', 'hr_attendance', 'hr_expense', 'hr_holidays', 'hr_recruitment', 'knowledge', 'learning_center', 'maintenance', 'mrp', 'mrp_workorder', 'odoosh_connector', 'point_of_sale', 'pos_restaurant', 'project', 'purchase', 'quality_control', 'sale_management', 'school_base', 'stock', 'student_organization', 'survey', 'website', 'website_slides', 'yt_world', 'yusen_website', 'yuthon_applicant', 'yuthon_attendance', 'yuthon_contract', 'yuthon_employee', 'yuthon_hr_attendance', 'yuthon_hr_employee', 'yuthon_notice', 'yuthon_salary', 'yuthon_school', 'yuthon_wage', 'yuthon_web', 'yuthon_will_task'])] + [('application', '=', True), ('name', 'in', ['account', 'accountant', 'agent_api', 'agent_channel', 'agent_core', 'agent_market', 'agent_payment', 'agent_portal', 'college', 'crm', 'fleet', 'game_ai_npc', 'game_base', 'helpdesk', 'hr', 'hr_attendance', 'hr_contract', 'hr_expense', 'hr_holidays', 'hr_recruitment', 'knowledge', 'learning_center', 'maintenance', 'mrp', 'mrp_workorder', 'odoosh_connector', 'point_of_sale', 'pos_restaurant', 'project', 'purchase', 'quality_control', 'repair', 'sale_management', 'school_base', 'stock', 'student_organization', 'survey', 'website', 'website_slides', 'yt_world', 'yusen_website', 'yuthon_applicant', 'yuthon_attendance', 'yuthon_employee', 'yuthon_hr_attendance', 'yuthon_notice', 'yuthon_salary', 'yuthon_school', 'yuthon_wage', 'yuthon_will_task'])] {'shixun_hide_empty_categories': True}