[MIG] hr_usability: migrate to 18.0

This commit is contained in:
Stéphan Sainléger
2026-01-16 16:16:58 +01:00
parent f4d9cd008c
commit a2421b89da
3 changed files with 43 additions and 0 deletions

0
hr_usability/__init__.py Normal file
View File

View File

@@ -0,0 +1,30 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
"name": "hr_usability Elabore",
"version": "18.0.1.0.0",
"depends": [
"base",
"hr",
"hr_holidays",
],
"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>