Skip to content

Commit

Permalink
[MIG] hr_holidays_settings: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Nov 17, 2023
1 parent c0a36da commit fe0a1c1
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 97 deletions.
41 changes: 23 additions & 18 deletions hr_holidays_settings/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ HR Holidays Settings
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/16.0/hr_holidays_settings
:target: https://github.com/OCA/hr/tree/17.0/hr_holidays_settings
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_holidays_settings
:target: https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_holidays_settings
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a Settings form in the menu of Leaves (HR Holidays module).
This settings are empty by default but enable other modules to be able to extend it.
This module adds a Settings form in the menu of Leaves (HR Holidays
module). This settings are empty by default but enable other modules to
be able to extend it.

**Table of contents**

Expand All @@ -41,40 +42,44 @@ Usage

To use this module, you need to:

#. Go to *Leaves > Configuration > Settings*.
1. Go to *Leaves > Configuration > Settings*.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_settings%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_settings%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* ForgeFlow

Contributors
~~~~~~~~~~~~
------------

* Miquel Raïch <[email protected]>
* Andrea Stirpe <[email protected]>
* Dennis Sluijk <[email protected]>
* Anand Kansagra <[email protected]>
* `CorporateHub <https://corporatehub.eu/>`__
- Miquel Raïch <[email protected]>
- Andrea Stirpe <[email protected]>
- Dennis Sluijk <[email protected]>
- Anand Kansagra <[email protected]>
- `CorporateHub <https://corporatehub.eu/>`__

* Alexey Pelykh <[email protected]>
* Juany Davila <[email protected]>
- Alexey Pelykh <[email protected]>

- Juany Davila <[email protected]>
- [APSL](https://apsl.tech):

- Antoni Marroig <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -86,6 +91,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/16.0/hr_holidays_settings>`_ project on GitHub.
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/17.0/hr_holidays_settings>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion hr_holidays_settings/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "HR Holidays Settings",
"summary": "Enables Settings Form for HR Holidays.",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "ForgeFlow, Odoo Community Association (OCA)",
Expand Down
61 changes: 12 additions & 49 deletions hr_holidays_settings/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_settings
# * hr_holidays_settings
#
# Translators:
# José Antonio Cuello <[email protected]>, 2017
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 01:44+0000\n"
"PO-Revision-Date: 2019-02-01 16:03+0000\n"
"Last-Translator: Marta Vázquez Rodríguez <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"POT-Creation-Date: 2023-11-17 09:12+0000\n"
"PO-Revision-Date: 2023-11-17 09:12+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.4\n"
"Plural-Forms: \n"

#. module: hr_holidays_settings
#: model:ir.actions.act_window,name:hr_holidays_settings.hr_holidays_config_settings_action
Expand All @@ -30,44 +25,12 @@ msgstr "Configurar Vacaciones RRHH"
msgid "Leaves Management"
msgstr "Gestión de Ausencias"

#. module: hr_holidays_settings
#: model_terms:ir.ui.view,arch_db:hr_holidays_settings.res_config_settings_view_form
msgid "Leaves management"
msgstr "Gestión de Ausencias"

#. module: hr_holidays_settings
#: model:ir.ui.menu,name:hr_holidays_settings.menu_hr_holidays_global_settings
msgid "Settings"
msgstr "Configuración"

#~ msgid "Leave Types"
#~ msgstr "Tipos de Ausencia"

#~ msgid ""
#~ "<span>(*) This configuration is related to the company you're logged into."
#~ "</span>"
#~ msgstr ""
#~ "<span>(*) Esta configuración es relativa a la compañía donde estas "
#~ "conectado.</span>"

#~ msgid "Cancel"
#~ msgstr "Cancelar"

#~ msgid "Company"
#~ msgstr "Compañía"

#~ msgid "Created by"
#~ msgstr "Creado por"

#~ msgid "Created on"
#~ msgstr "Creado el"

#~ msgid "Display Name"
#~ msgstr "Mostrar nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación el"

#~ msgid "Last Updated by"
#~ msgstr "Última actualización por"

#~ msgid "Last Updated on"
#~ msgstr "Última actualización el"
3 changes: 3 additions & 0 deletions hr_holidays_settings/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
9 changes: 9 additions & 0 deletions hr_holidays_settings/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- Miquel Raïch \<<[email protected]>\>
- Andrea Stirpe \<<[email protected]>\>
- Dennis Sluijk \<<[email protected]>\>
- Anand Kansagra \<<[email protected]>\>
- [CorporateHub](https://corporatehub.eu/)
- Alexey Pelykh \<<[email protected]>\>
- Juany Davila \<<[email protected]>\>
- \[APSL\](<https://apsl.tech>):
- Antoni Marroig \<<[email protected]>\>
8 changes: 0 additions & 8 deletions hr_holidays_settings/readme/CONTRIBUTORS.rst

This file was deleted.

3 changes: 3 additions & 0 deletions hr_holidays_settings/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module adds a Settings form in the menu of Leaves (HR Holidays
module). This settings are empty by default but enable other modules to
be able to extend it.
2 changes: 0 additions & 2 deletions hr_holidays_settings/readme/DESCRIPTION.rst

This file was deleted.

3 changes: 3 additions & 0 deletions hr_holidays_settings/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To use this module, you need to:

1. Go to *Leaves \> Configuration \> Settings*.
3 changes: 0 additions & 3 deletions hr_holidays_settings/readme/USAGE.rst

This file was deleted.

15 changes: 10 additions & 5 deletions hr_holidays_settings/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ <h1 class="title">HR Holidays Settings</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0a821902a0897fe908d76e68ccd789cca8b064660182e253584e8416f4072d2f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/tree/16.0/hr_holidays_settings"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_holidays_settings"><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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds a Settings form in the menu of Leaves (HR Holidays module).
This settings are empty by default but enable other modules to be able to extend it.</p>
<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/tree/17.0/hr_holidays_settings"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_holidays_settings"><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&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds a Settings form in the menu of Leaves (HR Holidays
module). This settings are empty by default but enable other modules to
be able to extend it.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -397,7 +398,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_settings%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_settings%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -420,6 +421,10 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
</ul>
</li>
<li>Juany Davila &lt;<a class="reference external" href="mailto:juany.davila&#64;forgeflow.com">juany.davila&#64;forgeflow.com</a>&gt;</li>
<li>[APSL](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):<ul>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:toni.marroig1&#64;gmail.com">toni.marroig1&#64;gmail.com</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -429,7 +434,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/16.0/hr_holidays_settings">OCA/hr</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/17.0/hr_holidays_settings">OCA/hr</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
18 changes: 7 additions & 11 deletions hr_holidays_settings/views/res_config_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div
class="app_settings_block"
<xpath expr="//form" position="inside">
<app
data-string="Leaves management"
string="Leaves Management"
data-key="hr_holidays"
string="Leaves management"
name="hr_holidays"
groups="hr.group_hr_manager"
>
<h2>Leaves Management</h2>
<div
class="row mt16 o_settings_container"
title="Leaves Management"
/>
</div>
<block title="Leaves Management" name="o_settings_container">
</block>
</app>
</xpath>
</field>
</record>
Expand Down

0 comments on commit fe0a1c1

Please sign in to comment.