Initial commit of hr_employee_activity for 11.0 -- Adds 'activity' to Employee records. (shouldn't backport)

This commit is contained in:
Jared Kipe
2018-05-23 11:43:00 -07:00
parent 2b301bbfe2
commit 453c795a8c
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import hr_employee_activity

View File

@@ -0,0 +1,21 @@
{
'name': 'HR Employee Activity',
'version': '11.0.1.0.0',
'author': 'Hibou Corp. <hello@hibou.io>',
'website': 'https://hibou.io/',
'license': 'AGPL-3',
'category': 'Employees',
'complexity': 'easy',
'description': """
This module adds activity to the `hr.employee` model.
""",
'depends': [
'hr',
],
'data': [
'hr_employee_activity_views.xml',
],
'installable': True,
'auto_install': False,
'category': 'Hidden',
}

View File

@@ -0,0 +1,6 @@
from odoo import models
class HrEmployee(models.Model):
_name = 'hr.employee'
_inherit = ['hr.employee', 'mail.activity.mixin']

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_employee_form_activity" model="ir.ui.view">
<field name="name">hr.employee.form.activity</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='message_ids']" position="before">
<field name="activity_ids" widget="mail_activity"/>
</xpath>
</field>
</record>
</odoo>