mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Initial commit of hr_employee_activity for 11.0 -- Adds 'activity' to Employee records. (shouldn't backport)
This commit is contained in:
1
hr_employee_activity/__init__.py
Normal file
1
hr_employee_activity/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from . import hr_employee_activity
|
||||||
21
hr_employee_activity/__manifest__.py
Normal file
21
hr_employee_activity/__manifest__.py
Normal 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',
|
||||||
|
}
|
||||||
6
hr_employee_activity/hr_employee_activity.py
Normal file
6
hr_employee_activity/hr_employee_activity.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
from odoo import models
|
||||||
|
|
||||||
|
|
||||||
|
class HrEmployee(models.Model):
|
||||||
|
_name = 'hr.employee'
|
||||||
|
_inherit = ['hr.employee', 'mail.activity.mixin']
|
||||||
13
hr_employee_activity/hr_employee_activity_views.xml
Normal file
13
hr_employee_activity/hr_employee_activity_views.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user