[ADD]hr_usability_elabore

This commit is contained in:
2023-12-21 12:32:21 +01:00
parent edc8cffc69
commit 34abfad364
3 changed files with 41 additions and 0 deletions

0
hr_usability/__init__.py Normal file
View File

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "hr_usability Elabore",
'version': '16.0.1.0.0',
'depends': ['base','hr'],
'author': "Élabore",
'category': 'Human Resources/Employees',
'summary' : "In times off type form view, add 'create_calendar_meeting' field",
'description': """
Go to Times off app > "Setings" > "Type time off"
Select a type
The 'create_calendar_meeting' is check by default
Uncheck it if do not want to display times off in the calendar
One the checkbox is unchecked for a time off type, the next approuved times off (of that type) won't be created as a meeting and won't appear in the calendar
""",
'data': [
'views/hr_leave_type_views.xml',
],
'demo': [
],
'application': False,
'license': 'LGPL-3',
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="hr_leave_type_form_inherit" model="ir.ui.view">
<field name="name">hr.leave.type.form.inherit</field>
<field name="model">hr.leave.type</field>
<field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='color']" position="before">
<field name="create_calendar_meeting"/>
</xpath>
</field>
</record>
</odoo>