Skip to content

Commit

Permalink
[IMP] hr_course: Allow to add activities
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Sep 28, 2023
1 parent e26773c commit cbbb226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hr_course/models/hr_course.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class HrCourse(models.Model):
_name = "hr.course"
_description = "Course"
_inherit = "mail.thread"
_inherit = ["mail.thread", "mail.activity.mixin"]

name = fields.Char(string="Name", required=True, tracking=True)
category_id = fields.Many2one(
Expand Down
2 changes: 1 addition & 1 deletion hr_course/models/hr_course_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class HrCourseSchedule(models.Model):
_name = "hr.course.schedule"
_description = "Course Schedule"
_inherit = "mail.thread"
_inherit = ["mail.thread", "mail.activity.mixin"]

name = fields.Char(string="Name", required=True, tracking=True)
course_id = fields.Many2one("hr.course", string="Course", required=True)
Expand Down

0 comments on commit cbbb226

Please sign in to comment.