Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] hr_holidays_leave_repeated: Migration to 17.0 #160

Open
wants to merge 12 commits into
base: 17.0
Choose a base branch
from
Prev Previous commit
Next Next commit
[FIX][14.0]: Adding the same fields on manager form view
ilo authored and remi-filament committed Dec 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 44b6b5c834fd4ef44bf66988118ec531a87cb8a4
3 changes: 2 additions & 1 deletion hr_holidays_leave_repeated/README.rst
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ HR Holidays leave repeated
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4b74c1cd7019b4b150293fe174a1d24fd90e05010a815e7939b01d0c3983d79e
!! source digest: sha256:162d88dbd2fd8cd12cd7f1c32c31e6e97c12d2bdd59120e9a955f2f49248efd1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -71,6 +71,7 @@ Contributors

* Andrea Stirpe <[email protected]>
* Hieu, Vo Minh Bao <[email protected]>
* Italo LOPES <[email protected]>

Maintainers
~~~~~~~~~~~
2 changes: 1 addition & 1 deletion hr_holidays_leave_repeated/__manifest__.py
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
"author": "Onestein, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-holidays",
"category": "Human Resources",
"version": "14.0.1.0.0",
"version": "14.0.1.1.0",
"license": "AGPL-3",
"depends": ["hr_holidays"],
"data": ["views/hr_leave_type.xml", "views/hr_leave.xml"],
1 change: 1 addition & 0 deletions hr_holidays_leave_repeated/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Andrea Stirpe <[email protected]>
* Hieu, Vo Minh Bao <[email protected]>
* Italo LOPES <[email protected]>
4 changes: 2 additions & 2 deletions hr_holidays_leave_repeated/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -367,7 +366,7 @@ <h1 class="title">HR Holidays leave repeated</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4b74c1cd7019b4b150293fe174a1d24fd90e05010a815e7939b01d0c3983d79e
!! source digest: sha256:162d88dbd2fd8cd12cd7f1c32c31e6e97c12d2bdd59120e9a955f2f49248efd1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/hr-holidays/tree/14.0/hr_holidays_leave_repeated"><img alt="OCA/hr-holidays" src="https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-holidays-14-0/hr-holidays-14-0-hr_holidays_leave_repeated"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to create periodical leaves.</p>
@@ -421,6 +420,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li>
<li>Hieu, Vo Minh Bao &lt;<a class="reference external" href="mailto:hieu.vmb&#64;komit-consulting.com">hieu.vmb&#64;komit-consulting.com</a>&gt;</li>
<li>Italo LOPES &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
42 changes: 42 additions & 0 deletions hr_holidays_leave_repeated/views/hr_leave.xml
Original file line number Diff line number Diff line change
@@ -35,4 +35,46 @@
</xpath>
</field>
</record>

<record id="hr_leave_repeated_manager_view_form" model="ir.ui.view">
<field name="model">hr.leave</field>
<field name="inherit_id" ref="hr_holidays.hr_leave_view_form_manager" />
<field name="arch" type="xml">
<xpath expr="//field[@name='holiday_status_id']/.." position="after">
<field name="holiday_type_repeat" invisible="1" />
<div
class="row"
name="repeat_mode"
attrs="{'invisible':[('holiday_type_repeat', '!=', True)]}"
>
<label class="col-2 mr-0" for="repeat_every" />
<field name="repeat_every" class="col-2 pl-0" nolabel="1" />
<label class="col-2 mr-0" for="repeat_mode" />
<field name="repeat_mode" class="col-2 pl-0" nolabel="1" />
</div>
<div
class="row"
attrs="{'invisible':['|',
('repeat_mode', '=', 'times'),
('holiday_type_repeat', '!=', True)
]}"
name="repeat_date"
>
<label class="col-2 mr-0" for="repeat_end_date" />
<field name="repeat_end_date" class="col-2 pl-0" nolabel="1" />
</div>
<div
class="row"
attrs="{'invisible':['|',
('repeat_mode','=','date'),
('holiday_type_repeat','!=',True)
]}"
name="repeat_limit"
>
<label class="col-2 mr-0" for="repeat_limit" />
<field name="repeat_limit" class="col-2 pl-0" nolabel="1" />
</div>
</xpath>
</field>
</record>
</odoo>