feat(college): 应用类别配置菜单+中文列名、课程大纲字段、隐藏公司切换器
This commit is contained in:
@@ -75,6 +75,7 @@ class SchoolCourse(models.Model):
|
|||||||
introduction = fields.Html(string='课程介绍', sanitize=True)
|
introduction = fields.Html(string='课程介绍', sanitize=True)
|
||||||
objectives = fields.Html(string='课程目标', sanitize=True)
|
objectives = fields.Html(string='课程目标', sanitize=True)
|
||||||
features = fields.Html(string='课程特色', sanitize=True)
|
features = fields.Html(string='课程特色', sanitize=True)
|
||||||
|
syllabus = fields.Html(string='课程大纲', sanitize=True)
|
||||||
business_scenario = fields.Html(string='业务情景', sanitize=True)
|
business_scenario = fields.Html(string='业务情景', sanitize=True)
|
||||||
|
|
||||||
# 学员分配
|
# 学员分配
|
||||||
|
|||||||
@@ -267,3 +267,11 @@
|
|||||||
p, li { color: $o-main-text-color; }
|
p, li { color: $o-main-text-color; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ============================================================
|
||||||
|
// 隐藏右上角「公司切换器」(我的学校)
|
||||||
|
// 项目为单学校场景,不需要用户切换公司。
|
||||||
|
// ============================================================
|
||||||
|
.o_switch_company_menu {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -392,4 +392,31 @@ else:
|
|||||||
action="action_yuthon_about_question_import"
|
action="action_yuthon_about_question_import"
|
||||||
sequence="60"
|
sequence="60"
|
||||||
groups="college.group_teacher,base.group_system"/>
|
groups="college.group_teacher,base.group_system"/>
|
||||||
|
|
||||||
|
<!-- ===================== 应用类别配置(挂在「实训模块」下) ===================== -->
|
||||||
|
<!-- Odoo 默认只有 form 视图,没有 list 视图,需要先补一个 -->
|
||||||
|
<record id="view_yuthon_module_category_list" model="ir.ui.view">
|
||||||
|
<field name="name">ir.module.category.list (college)</field>
|
||||||
|
<field name="model">ir.module.category</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<list string="应用类别">
|
||||||
|
<field name="name" string="名称"/>
|
||||||
|
<field name="description" string="描述"/>
|
||||||
|
<field name="sequence" string="排序"/>
|
||||||
|
<field name="parent_id" string="上级应用"/>
|
||||||
|
</list>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="action_yuthon_module_category" model="ir.actions.act_window">
|
||||||
|
<field name="name">应用类别配置</field>
|
||||||
|
<field name="res_model">ir.module.category</field>
|
||||||
|
<field name="view_mode">list,form</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<menuitem id="menu_yuthon_module_category"
|
||||||
|
name="应用类别配置"
|
||||||
|
parent="menu_shixun_module"
|
||||||
|
action="action_yuthon_module_category"
|
||||||
|
sequence="10"/>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user