关于 #13
@@ -40,6 +40,8 @@
|
||||
'views/assignment_batch_wizard_views.xml',
|
||||
'views/import_wizard_views.xml',
|
||||
'views/homework_views.xml',
|
||||
'data/about_pages.xml',
|
||||
'views/about_page_views.xml',
|
||||
'views/menus.xml',
|
||||
],
|
||||
'application': True,
|
||||
|
||||
@@ -7,3 +7,4 @@ from . import progress
|
||||
from . import assignment
|
||||
from . import assignment_batch_wizard
|
||||
from . import import_wizard
|
||||
from . import about_page
|
||||
|
||||
@@ -30,3 +30,6 @@ access_yuthon_school_course_chapter_student,yuthon.school.course.chapter.student
|
||||
access_yuthon_school_course_chapter_attachment_admin,yuthon.school.course.chapter.attachment.admin,model_yuthon_school_course_chapter_attachment,base.group_system,1,1,1,1
|
||||
access_yuthon_school_course_chapter_attachment_teacher,yuthon.school.course.chapter.attachment.teacher,model_yuthon_school_course_chapter_attachment,college.group_teacher,1,1,1,1
|
||||
access_yuthon_school_course_chapter_attachment_student,yuthon.school.course.chapter.attachment.student,model_yuthon_school_course_chapter_attachment,college.group_student,1,0,0,0
|
||||
access_yuthon_about_page_admin,yuthon.about.page.admin,model_yuthon_about_page,base.group_system,1,1,1,1
|
||||
access_yuthon_about_page_teacher,yuthon.about.page.teacher,model_yuthon_about_page,college.group_teacher,1,1,1,1
|
||||
access_yuthon_about_page_student,yuthon.about.page.student,model_yuthon_about_page,college.group_student,1,0,0,0
|
||||
|
||||
|
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
+20
-11
@@ -108,32 +108,41 @@
|
||||
sequence="40"
|
||||
groups="college.group_teacher,college.group_student,base.group_system"/>
|
||||
|
||||
<!-- ===================== 关于:占位动作(内容待添加,先指向 /web 避免报错;须在引用它的菜单之前定义) ===================== -->
|
||||
<record id="action_yuthon_about_system" model="ir.actions.act_url">
|
||||
<!-- ===================== 关于:内容页(系统说明 / 操作手册,指向预置的 yuthon.about.page 记录) ===================== -->
|
||||
<!-- 移除早期占位的 act_url 记录(若存在),改用 act_window 打开说明内容 -->
|
||||
<delete model="ir.actions.act_url" id="action_yuthon_about_system"/>
|
||||
<delete model="ir.actions.act_url" id="action_yuthon_about_operation"/>
|
||||
|
||||
<!-- 系统说明:打开预置记录 about_page_system -->
|
||||
<record id="action_yuthon_about_system" model="ir.actions.act_window">
|
||||
<field name="name">系统说明</field>
|
||||
<field name="url">/web</field>
|
||||
<field name="target">self</field>
|
||||
<field name="res_model">yuthon.about.page</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="res_id" ref="about_page_system"/>
|
||||
<field name="target">current</field>
|
||||
</record>
|
||||
<record id="action_yuthon_about_operation" model="ir.actions.act_url">
|
||||
<field name="name">操作说明</field>
|
||||
<field name="url">/web</field>
|
||||
<field name="target">self</field>
|
||||
<!-- 操作手册:打开预置记录 about_page_operation -->
|
||||
<record id="action_yuthon_about_operation" model="ir.actions.act_window">
|
||||
<field name="name">操作手册</field>
|
||||
<field name="res_model">yuthon.about.page</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="res_id" ref="about_page_operation"/>
|
||||
<field name="target">current</field>
|
||||
</record>
|
||||
|
||||
<!-- ===================== 关于(顶级菜单,放在「组织架构」后面) ===================== -->
|
||||
<menuitem id="menu_yuthon_about"
|
||||
name="关于"
|
||||
web_icon="college,static/src/img/about.png"
|
||||
sequence="30"
|
||||
groups="college.group_teacher,college.group_student,base.group_system"/>
|
||||
<!-- 系统说明:内容待添加 -->
|
||||
<menuitem id="menu_yuthon_about_system"
|
||||
name="系统说明"
|
||||
parent="menu_yuthon_about"
|
||||
action="action_yuthon_about_system"
|
||||
sequence="10"/>
|
||||
<!-- 操作说明:内容待添加 -->
|
||||
<menuitem id="menu_yuthon_about_operation"
|
||||
name="操作说明"
|
||||
name="操作手册"
|
||||
parent="menu_yuthon_about"
|
||||
action="action_yuthon_about_operation"
|
||||
sequence="20"/>
|
||||
|
||||
Reference in New Issue
Block a user