Commit 453c795a authored by Jared Kipe's avatar Jared Kipe

Initial commit of `hr_employee_activity` for 11.0 -- Adds 'activity' to...

Initial commit of `hr_employee_activity` for 11.0 -- Adds 'activity' to Employee records. (shouldn't backport)
parent 2b301bbf
from . import hr_employee_activity
{
'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',
}
from odoo import models
class HrEmployee(models.Model):
_name = 'hr.employee'
_inherit = ['hr.employee', 'mail.activity.mixin']
<?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>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment