[ADD] hr: add activity mixin on employees

Scheduling activities on employees is something people working in human
resources seem to do sometimes.

Closes #19483 .
This commit is contained in:
dbh
2017-10-18 13:19:56 +02:00
committed by Thibault Delavallée
parent 320fd28f81
commit 8cfee8634c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ class Employee(models.Model):
_name = "hr.employee"
_description = "Employee"
_order = 'name'
_inherit = ['mail.thread', 'resource.mixin']
_inherit = ['mail.thread', 'mail.activity.mixin', 'resource.mixin']
_mail_post_access = 'read'
+1
View File
@@ -121,6 +121,7 @@
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>