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

[15.0][ADD] hr_period_create_timesheet #614

Open
wants to merge 2 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions hr_period_create_timesheet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
==========================
HR period create timesheet
==========================

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

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

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


This module prepare the timesheets for all the periods created for all
employees.

**Table of contents**

.. contents::
:local:

Usage
=====


To use this module, you need to:

* Go to Payroll > Payroll Periods and select the periods you want to create the
timesheets for.
* Go to Action > Generate Timesheets
* Add the employees you are generating timesheets for
* Click on Generate

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:%20hr_period_create_timesheet%0Aversion:%2015.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
~~~~~~~

* Eficent

Contributors
~~~~~~~~~~~~

* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Aaron Henriquez <[email protected]>
* Jasmin Solanki <[email protected]>

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/15.0/hr_period_create_timesheet>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions hr_period_create_timesheet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import wizards
20 changes: 20 additions & 0 deletions hr_period_create_timesheet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2023 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "HR period create timesheet",
"version": "15.0.1.0.0",
"author": "Eficent, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/timesheet",
"category": "Human Resources",
"depends": ["hr_timesheet_sheet_period"],
"summary": "This module prepare the timesheets for all the periods selected"
" for all employees",
"license": "AGPL-3",
"data": [
"security/ir.model.access.csv",
"data/ir_cron.xml",
"wizards/hr_period_create_timesheet_view.xml",
],
"installable": True,
}
15 changes: 15 additions & 0 deletions hr_period_create_timesheet/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="ir_cron_hr_payroll_period" model="ir.cron">
<field name='name'>Create Timesheets for Future Periods</field>
<field name='interval_number'>1</field>
<field name='interval_type'>weeks</field>
<field name="numbercall">-1</field>
<field name="active" eval="False" />
<field name="doall" eval="False" />
<field name="code">model.create_timesheets_on_future_periods()</field>
<field name="state">code</field>
<field name="user_id" ref="base.user_root" />
<field name="model_id" ref="model_hr_period_create_timesheet" />
</record>
</odoo>
3 changes: 3 additions & 0 deletions hr_period_create_timesheet/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Aaron Henriquez <[email protected]>
* Jasmin Solanki <[email protected]>
3 changes: 3 additions & 0 deletions hr_period_create_timesheet/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

This module prepare the timesheets for all the periods created for all
employees.
8 changes: 8 additions & 0 deletions hr_period_create_timesheet/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

To use this module, you need to:

* Go to Payroll > Payroll Periods and select the periods you want to create the
timesheets for.
* Go to Action > Generate Timesheets
* Add the employees you are generating timesheets for
* Click on Generate
2 changes: 2 additions & 0 deletions hr_period_create_timesheet/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
hr_period_create_timesheet.access_hr_period_create_timesheet,access_hr_period_create_timesheet,hr_period_create_timesheet.model_hr_period_create_timesheet,base.group_user,1,1,1,1
Loading
Loading