Skip to content

Commit

Permalink
[MIG] hr_birthday_calendar: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago370 committed Oct 30, 2024
1 parent 0f025c2 commit 86e6dd6
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 42 deletions.
100 changes: 81 additions & 19 deletions hr_birthday_calendar/README.rst
Original file line number Diff line number Diff line change
@@ -1,31 +1,93 @@
.. image:: https://img.shields.io/badge/licence-GPL--3-blue.svg
:target: http://www.gnu.org/licenses/gpl-3.0-standalone.html
:alt: License: GPL-3

====================
HR Birthday Calendar
====================

Add birthday calendar view.
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:29f07180c9a5eae5f7f3341c66e41eda6552741e4d5690316903837a8d036301
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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_birthday_calendar
: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_birthday_calendar
: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
:alt: Try me on Runboat

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

This module allows you to view the birthdays of all employees in a
calendar view.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

- Go to *Employees* > Employees > Employees

- On an employee's form, in the "Private Information" tab, fill in the
"Date of Birth" field > save

- Go to *Employees* > Personal

- Change the view type to calendar by clicking on the calendar icon.

Now you can view the birthdays of each day.

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_birthday_calendar%0Aversion:%2016.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
-------

* Mint System GmbH

For a detailed documentation have a look at https://www.odoo-wiki.org/.
Contributors
------------

.. image:: https://raw.githubusercontent.com/Mint-System/Wiki/master/assets/icon-box.png
:height: 100
:width: 100
:alt: Icon
- Janik von Rotz https://www.mint-system.ch/

Configuration
~~~~~~~~~~~~~
Maintainers
-----------

* No additional configurations needed
This module is maintained by the OCA.

Maintainer
==========
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

.. image:: https://raw.githubusercontent.com/Mint-System/Wiki/master/assets/mint-system-logo.png
:target: https://www.mint-system.ch
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 maintained by Mint System GmbH.
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/16.0/hr_birthday_calendar>`_ project on GitHub.

For support and more information, please visit `our Website <https://www.mint-system.ch>`__.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion hr_birthday_calendar/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Mint System GmbH, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr",
"category": "Human Resources",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"depends": ["hr"],
"data": ["data/birthday_calendar.xml"],
Expand Down
9 changes: 8 additions & 1 deletion hr_birthday_calendar/data/birthday_calendar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="active" eval="True" />
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='work_location']" position="after">
<xpath expr="//field[@name='work_location_id']" position="after">
<field name="birthday_public" />
</xpath>
</data>
Expand Down Expand Up @@ -45,4 +45,11 @@
<field name="view_mode">kanban,tree,form,calendar</field>
</record>

<record id="hr_employee_personal_menu" model="ir.ui.menu">
<field name="name">Personal</field>
<field name="parent_id" ref="hr.menu_hr_root" />
<field name="action" ref="hr.hr_employee_public_action" />
<field name="sequence" eval="10" />
</record>

</odoo>
1 change: 1 addition & 0 deletions hr_birthday_calendar/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Janik von Rotz <https://www.mint-system.ch/>
1 change: 1 addition & 0 deletions hr_birthday_calendar/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows you to view the birthdays of all employees in a calendar view.
11 changes: 11 additions & 0 deletions hr_birthday_calendar/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To use this module, you need to:

- Go to *Employees* > Employees > Employees

- On an employee's form, in the "Private Information" tab, fill in the "Date of Birth" field > save

- Go to *Employees* > Personal

- Change the view type to calendar by clicking on the calendar icon.

Now you can view the birthdays of each day.
Binary file modified hr_birthday_calendar/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions hr_birthday_calendar/static/description/icon.svg

This file was deleted.

0 comments on commit 86e6dd6

Please sign in to comment.