Metadata-Version: 2.1
Name: odoo-addon-project_timesheet_holidays_editable
Version: 18.0.1.0.0.6
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Re-enables timesheet edition when they're generated from leaves
Home-page: https://github.com/OCA/timesheet
License: AGPL-3
Author: =?utf-8?q?Solvos_Consultor=C3=ADa_Inform=C3=A1tica=2C_Odoo_Community_Association_=28OCA=29?=
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===================================================================
Project Timesheet Holidays - re-enable generated timesheets edition
===================================================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:729ca2ced074913d51d934ec8a6604ddca29291c6dbf52c758185403365c1650
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-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%2Ftimesheet-lightgray.png?logo=github
    :target: https://github.com/OCA/timesheet/tree/18.0/project_timesheet_holidays_editable
    :alt: OCA/timesheet
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/timesheet-18-0/timesheet-18-0-project_timesheet_holidays_editable
    :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/timesheet&target_branch=18.0
    :alt: Try me on Runboat

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

By default, every timesheet generated from a leave becomes read-only, so
nobody can directly edit it and e.g. change its hour count. This
shouldn't occur in Odoo previous versions.

This could be annoying, because for certain leaves (like medical
leaves), final spent time should be different than initial leave filled.
This forces to reject, modify and then approve again leave. Exact time
could not be filled sometimes anyway, due to leave form hour selection.

This addon re-enables timesheet edition when they're generated from
leaves (initially name and quant fields), letting us make it editable
depending on leave type.

**Table of contents**

.. contents::
   :local:

Usage
=====

Once installed, it adds a configuration option to define the editability
level of timesheets generated from each Time Off Type.

Configuration

After installing the module, follow these steps:

1. Go to Time Off (hr_holidays)
2. Navigate to Configuration → Time Off Types
3. Select the desired Time Off Type
4. Make sure the option “Generate Timesheets” (timesheet_generate) is
   enabled (This configuration menu is only visible if timesheet
   generation is enabled).
5. Configure the Timesheet Restriction Level

Timesheet Restriction Levels

Each Time Off Type can define how restrictive the generated timesheets
are:

1. None

   - The generated timesheet entries cannot be edited by anyone

2. Officer

   - Timesheet entries can only be edited by users belonging to the
     group: hr_holidays.group_hr_holidays_user
   - Prevents regular employees from modifying generated timesheets

3. All

   - Timesheet entries can be edited by any user with access to
     timesheets

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/timesheet/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/timesheet/issues/new?body=module:%20project_timesheet_holidays_editable%0Aversion:%2018.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
-------

* Solvos Consultoría Informática

Contributors
------------

- `Solvos <https://www.solvos.es>`__:

  - David ALonso <david.alonso@solvos.es>

Maintainers
-----------

This module is maintained by the OCA.

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

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/timesheet <https://github.com/OCA/timesheet/tree/18.0/project_timesheet_holidays_editable>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
