diff --git a/college/models/course.py b/college/models/course.py
index 67aad2e..fcb67bb 100644
--- a/college/models/course.py
+++ b/college/models/course.py
@@ -75,6 +75,7 @@ class SchoolCourse(models.Model):
introduction = fields.Html(string='课程介绍', sanitize=True)
objectives = fields.Html(string='课程目标', sanitize=True)
features = fields.Html(string='课程特色', sanitize=True)
+ syllabus = fields.Html(string='课程大纲', sanitize=True)
business_scenario = fields.Html(string='业务情景', sanitize=True)
# 学员分配
diff --git a/college/static/src/scss/college_theme.scss b/college/static/src/scss/college_theme.scss
index ac999bf..71d66ae 100644
--- a/college/static/src/scss/college_theme.scss
+++ b/college/static/src/scss/college_theme.scss
@@ -267,3 +267,11 @@
p, li { color: $o-main-text-color; }
}
+// ============================================================
+// 隐藏右上角「公司切换器」(我的学校)
+// 项目为单学校场景,不需要用户切换公司。
+// ============================================================
+.o_switch_company_menu {
+ display: none !important;
+}
+
diff --git a/college/views/menus.xml b/college/views/menus.xml
index e8e78e6..9eb07d4 100644
--- a/college/views/menus.xml
+++ b/college/views/menus.xml
@@ -392,4 +392,31 @@ else:
action="action_yuthon_about_question_import"
sequence="60"
groups="college.group_teacher,base.group_system"/>
+
+
+
+
+
+
课程:{self.course_id.name}
-作业名称:{self.name}
-截止时间:{self.deadline or '无'}
-作业要求:{self.requirement or '无'}
- """ - # 发送消息(关联当前作业记录,学生在消息中心可直接跳转) - self.message_post( - subject=subject, - body=body, - partner_ids=student_users.mapped('partner_id').ids, - subtype_xmlid='mail.mt_note' - ) - -======= ->>>>>>> 0b2a587b69524dafde97f76bad27721afebdcddb -======= ->>>>>>> 0b2a587b69524dafde97f76bad27721afebdcddb # ====================== 草稿/关闭作业 ====================== def action_draft(self): self.state = 'draft' @@ -388,21 +325,14 @@ class CourseHomework(models.Model): def create(self, vals): homework_record = super().create(vals) # 草稿状态不执行自动生成提交记录,移到action_publish -<<<<<<< HEAD -<<<<<<< HEAD - target_a = self.env["course.score.item"].search([ ("name", "=", "作业"), ("create_uid", "=", self.env.uid) ], limit=1) if target_a: - # 将刚新建的B追加到A的多对多字段 + # 将新建的作业追加到"作业"成绩项目的多对多字段 target_a.write({ "homework_ids": [(4, homework_record.id)] }) -======= ->>>>>>> 0b2a587b69524dafde97f76bad27721afebdcddb -======= ->>>>>>> 0b2a587b69524dafde97f76bad27721afebdcddb return homework_record \ No newline at end of file diff --git a/learning_center/models/course_homework_submit.py b/learning_center/models/course_homework_submit.py index 9cdc495..42a4649 100644 --- a/learning_center/models/course_homework_submit.py +++ b/learning_center/models/course_homework_submit.py @@ -93,13 +93,6 @@ class CourseHomeworkSubmit(models.Model): def create(self, vals): submit_rec = super().create(vals) self._check_submit_change_state(submit_rec) -<<<<<<< HEAD -<<<<<<< HEAD - -======= ->>>>>>> 0b2a587b69524dafde97f76bad27721afebdcddb -======= ->>>>>>> 0b2a587b69524dafde97f76bad27721afebdcddb return submit_rec def write(self, vals):