Skip to content

Commit

Permalink
Merge PR #1284 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 28, 2023
2 parents e26773c + b97f2d4 commit 32864d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 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
7 changes: 2 additions & 5 deletions hr_course/views/hr_course_schedule_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,8 @@
</notebook>
</sheet>
<div class="oe_chatter">
<field
name="message_follower_ids"
widget="mail_followers"
groups="base.group_user"
/>
<field name="message_follower_ids" widget="mail_followers" />
<field name="activity_ids" widget="mail_activity" />
<field name="message_ids" widget="mail_thread" />
</div>
</form>
Expand Down
5 changes: 5 additions & 0 deletions hr_course/views/hr_course_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="activity_ids" widget="mail_activity" />
<field name="message_ids" widget="mail_thread" />
</div>
</form>
</field>
</record>
Expand Down

0 comments on commit 32864d6

Please sign in to comment.