完善教育 #58

Merged
qitangbo merged 1 commits from qtb into master 2026-10-09 21:22:42 +08:00
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
// 关于页(yuthon.about.page)为只读展示页:
// form 视图已设 edit="false",但教师组有该模型写权限时控制面板仍会渲染「编辑」按钮,
// 这里用 js_class + CSS 精准隐藏该视图控制面板里的编辑按钮,不影响其他表单。
.o_view_controller.yuthon_about_form .o_control_panel .o_form_button_edit,
.o_view_controller.yuthon_about_form .o_control_panel button[data-hotkey="e"] {
// 这里用 CSS :has() 精准隐藏该视图控制面板里的编辑按钮,不影响其他表单。
.o_view_controller:has(.o_form_view.o_about_full_form) .o_control_panel .o_form_button_edit,
.o_view_controller:has(.o_form_view.o_about_full_form) .o_control_panel button[data-hotkey="e"] {
display: none !important;
}
+1 -1
View File
@@ -8,7 +8,7 @@
<field name="model">yuthon.about.page</field>
<field name="arch" type="xml">
<!-- create/edit 关掉:关于页内容由代码预置维护,页面右上角不再显示「创建/编辑」按钮 -->
<form class="o_about_full_form" create="false" edit="false" js_class="yuthon_about_form">
<form class="o_about_full_form" create="false" edit="false">
<field name="content" widget="html" readonly="1" class="o_about_full"/>
</form>
</field>