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

[18.0] [MIG] hr_timesheet_sheet: Migration 18.0 #723

Open
wants to merge 157 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
33edf82
[11.0][MIG] hr_timesheet_sheet (#125)
MiquelRForgeFlow Jun 18, 2018
deb6bf7
Translated using Weblate (Japanese)
yostashiro Jun 19, 2018
d9bbabe
Translated using Weblate (Português (Brasil))
Jun 20, 2018
2161d54
[11.0][hr_timesheet_sheet]: allow to display more than 40 cells
JordiBForgeFlow Jul 26, 2018
e3fae83
hr_timesheet_sheet: add menu 'Timesheet Sheets to Approve'
JordiBForgeFlow Jul 30, 2018
85a34b2
hr_timesheet_sheet: pass selected project context to task creation
JordiBForgeFlow Aug 2, 2018
2f3df73
[11.0][IMP] hr_timesheet_sheet: ease extensions (#131)
astirpe Sep 11, 2018
d0ad37c
Fix task domain and default project_id
astirpe Sep 20, 2018
dff3a08
Bump version
astirpe Sep 20, 2018
f9dd767
[IMP] hr_timesheet_sheet ux
astirpe Sep 20, 2018
9fec78f
Code review
astirpe Sep 20, 2018
3273311
Update contributors list
astirpe Sep 20, 2018
fbb0184
[FIX] hr_timesheet_sheet: "Refuse" button name (#134)
astirpe Oct 1, 2018
48baa70
[11.0][IMP] hr_timesheet_sheet: merge hr_timesheet_sheet_week_start_d…
LoisRForgeFlow Oct 17, 2018
c687fe0
restrict selection of projects to those that have 'allow_timsheets' set
JordiBForgeFlow Nov 5, 2018
ad4a4ca
[MIG] hr_timesheet_sheet: Migration to 12.0
alexey-pelykh Nov 9, 2018
450204a
[FIX] hr_timesheet_sheet: Don't fail tests on Sunday
pedrobaeza Dec 9, 2018
2791a46
[IMP] hr_timesheet_sheet: more extendability & cleanup
alexey-pelykh Dec 11, 2018
240eae3
[FIX] Fix related fields in hr_timesheet_sheet
AdriaGForgeFlow Dec 18, 2018
db0f2ca
[FIX] hr_timesheet_sheet: who approves timesheets should be the manager
MiquelRForgeFlow Dec 17, 2018
08e558a
[FIX]hr_timesheet_sheet : fix singleton error in _compute_line_ids
bizzappdev Dec 27, 2018
4a0d5e2
[FIX] timesheet sheet lines inconsistency
astirpe Jan 17, 2019
832e836
[FIX] hr_timesheet_sheet: unlink only generated AAL
alexey-pelykh Feb 15, 2019
daf5e1b
[IMP] hr_timesheet_sheet: texts & formatting
alexey-pelykh Feb 15, 2019
1563bd4
[FIX] hr_timesheet_sheet: sheet_id when modifying the timesheet
astirpe Feb 26, 2019
a70c397
[IMP] hr_timesheet_sheet: protect specific list of fields
alexey-pelykh Feb 26, 2019
430dac4
[FIX] Avoid cleaning when set to draft
MiquelRForgeFlow Feb 28, 2019
7c1dbff
[IMP] Make a constant for the '/' name for empty lines
MiquelRForgeFlow Feb 27, 2019
81786ef
[FIX] Correctly handle partial amounts of timesheets
MiquelRForgeFlow Feb 18, 2019
366953a
[IMP] Rename method / parameters to a better descriptive name
MiquelRForgeFlow Feb 18, 2019
6063583
hr_timesheet_sheet: version bump
alexey-pelykh Mar 5, 2019
b8f2bea
[FIX] Wrong decorator
astirpe Mar 8, 2019
5b0070f
Translated using Weblate (Dutch)
Mar 23, 2019
8855fe4
[IMP] hr_timesheet_sheet: fix amount calculation issues + code simpli…
astirpe Mar 25, 2019
a05b8c3
[FIX] Add lines of other employees
astirpe Mar 28, 2019
0d8b6d8
[FIX] hr_timesheet_sheet: sheet name
alexey-pelykh Mar 26, 2019
cc905ca
[12.0][FIX] hr_timesheet_sheet: subscribe user when confirm (#227)
astirpe Apr 3, 2019
7988280
[FIX] Allow timesheet sheet when employee's company is not set
astirpe Mar 27, 2019
e136b31
[ADD] Constraint company_id in timesheet sheet line
astirpe Mar 25, 2019
0acaa60
[ADD] company_id in blacklist of timesheet sheet line
astirpe Mar 25, 2019
4329010
[REM] Obsolete constraint
astirpe Mar 25, 2019
6ce2749
[FIX] Consistency of company on projects and employees
astirpe Mar 28, 2019
520d047
[IMP] hr_timesheet_sheet: Clearer interface
tarteo Apr 25, 2019
d73356c
[FIX] hr_timesheet_sheet: tests
alexey-pelykh May 1, 2019
d9d0aa4
[FIX] hr_timesheet_sheet: consistency with v11
alexey-pelykh May 2, 2019
3fdd28b
[FIX]hr_timesheet_sheet : unit amount will display in formate hr:minute
bizzappdev Feb 18, 2019
b767d21
[FIX] Don't create analytic lines in onchange
MiquelRForgeFlow Apr 11, 2019
9a3662a
[FIX] Tests
MiquelRForgeFlow Apr 11, 2019
7efc9c3
[IMP] hr_timesheet_sheet: more hooks
alexey-pelykh Jul 1, 2019
c79ae03
Translated using Weblate (German)
marylla Jul 10, 2019
6d2dc57
Translated using Weblate (German)
marylla Jul 31, 2019
cb4c445
[FIX] Expected singleton
astirpe Jul 12, 2019
a77a840
[12.0][FIX] Do not remove lines when removing the timesheet sheet
astirpe Jul 30, 2019
9cddae5
Translated using Weblate (German)
marylla Aug 8, 2019
6a5eb73
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
6da8490
[IMP] hr_timesheet_sheet: review policy
alexey-pelykh May 21, 2019
ca0c67a
[FIX] hr_timesheet_sheet: remove non-existent models
alexey-pelykh Nov 5, 2019
1539b3f
[IMP] hr_timesheet_sheet: error details
alexey-pelykh Nov 7, 2019
9c62522
[ADD] hr_timesheet_sheet: policies
alexey-pelykh Nov 12, 2019
19a0e35
Translated using Weblate (Spanish)
chienandalu Nov 26, 2019
e516b7b
Translated using Weblate (Italian)
primes2h Nov 29, 2019
347edc2
Translated using Weblate (German)
marylla Dec 9, 2019
d7c33e4
[IMP] hr_timesheet_sheet: allow employee to review own non-submitted …
alexey-pelykh Dec 4, 2019
9288c43
Translated using Weblate (German)
marylla Dec 10, 2019
9f65e96
[FIX] hr_timesheet_sheet_policy*: admin always reviewer
astirpe Dec 23, 2019
e404e36
[FIX] hr_timesheet_sheet: don't store possible_reviewer_ids
alexey-pelykh Dec 23, 2019
c2a0c53
[FIX] Clean/merge timesheets when in draft only
astirpe Jan 29, 2020
df3469b
[FIX] hr_timesheet_sheet: same week in different years is still same
alexey-pelykh Jan 31, 2020
ef67331
[FIX] hr_timesheet_sheet: use unique IDs in line generation
alexey-pelykh Dec 28, 2019
b85850f
Translated using Weblate (Spanish)
pedrobaeza Feb 6, 2020
f9374b9
[IMP] hr_timesheet_sheet: hooks
alexey-pelykh Feb 6, 2020
471f2bf
[IMP] hr_timesheet_sheet: add id to allow modules add options
alexey-pelykh Feb 11, 2020
9e224e7
hr_timesheet_sheet: fix FR translation that trigger a crash
alexis-via Feb 11, 2020
0dd43f6
[IMP] hr_timesheet_sheet: add kanban view
alexey-pelykh Feb 12, 2020
7da4e66
Translated using Weblate (Italian)
Feb 13, 2020
6ddd587
[IMP] hr_timesheet_sheet: _get_subscribers hook
alexey-pelykh Feb 14, 2020
ae449e4
[FIX] hr_timesheet_sheet: lost kanban mode
alexey-pelykh Feb 14, 2020
54b0c5e
Translated using Weblate (Dutch)
Apr 3, 2020
25f13b7
[FIX] hr_timesheet_sheet: drop fuzzy+python-format translations
alexey-pelykh Apr 3, 2020
b3d489c
[IMP] : black, isort
Mar 2, 2020
7d465f5
[MIG] hr_timesheet_sheet: Migration to 13.0
Mar 2, 2020
61332ee
[IMP] hr_timesheet_sheet: black, isort, prettier
MiquelRForgeFlow Apr 6, 2020
805f815
[MIG] hr_timesheet_sheet: Migration to 13.0 (complete)
MiquelRForgeFlow Apr 3, 2020
09735ad
[FIX] hr_timesheet_sheet: openupgrade
alexey-pelykh Apr 12, 2020
e0b1806
[FIX] failing tests, linting
May 22, 2020
0791c31
Translated using Weblate (French)
pedrobaeza Oct 14, 2020
816c8aa
[FIX] hr_timesheet_sheet WARNING DB odoo.osv.expression: The domain …
vishalaktiv Oct 20, 2020
abd6561
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
99f6b85
[FIX] hr_timesheet_sheet: Add review policies for other groups
pedrobaeza Aug 18, 2020
4fed3b4
[FIX] Typo
ypapouin Dec 14, 2020
57d14df
Translated using Weblate (Dutch)
tarteo Feb 11, 2021
baac8f6
[IMP] hr_timesheet_sheet: black, isort, prettier
schhatbar-initos Mar 9, 2021
8484ed7
[14.0][MIG]hr_timesheet_sheet
schhatbar-initos Mar 9, 2021
6847e04
Added translation using Weblate (French (France))
Yvesldff Apr 10, 2021
c51b104
Translated using Weblate (French (France))
Yvesldff Apr 10, 2021
34d09e3
Translated using Weblate (French (France))
Yvesldff Apr 11, 2021
0a8e82d
Translated using Weblate (German)
OSevangelist May 5, 2021
a5f317d
Translated using Weblate (French)
Yvesldff May 14, 2021
037de31
[14.0] [FIX] hr_timesheet_sheet Week %s translation
innovara Jul 21, 2021
ace252d
[IMP] hr_timesheet_sheet: Screenshot added for quick understanding
tarbib Oct 11, 2021
56d1c33
Translated using Weblate (Swedish)
simonstromb Nov 15, 2021
878df30
Translated using Weblate (Swedish)
simonstromb Nov 16, 2021
12ffb9c
Translated using Weblate (Swedish)
simonstromb Nov 22, 2021
8b48b2c
Translated using Weblate (Swedish)
simonstromb Nov 23, 2021
6a00c30
Translated using Weblate (Swedish)
simonstromb Nov 30, 2021
40085c3
Translated using Weblate (Swedish)
simonstromb Nov 30, 2021
a9c0c5b
Translated using Weblate (Dutch)
bosd Feb 1, 2022
3787790
Translated using Weblate (Dutch)
bosd Feb 8, 2022
acd67d2
Do not merge invoiced timesheet lines
Oct 13, 2021
c2a4ce2
Do not try to remove invoiced lines
Jun 15, 2021
209847a
[FIX] hr_timesheet_sheet: Add sale_timesheet dependency (timesheet_in…
victoralmau Apr 12, 2022
78a86d1
[IMP] hr_timesheet_sheet: black, isort, prettier
CRogos Apr 22, 2022
452216d
[MIG] hr_timesheet_sheet: Migration to 15.0
CRogos Apr 22, 2022
bae40f8
Fix python-format translation issues.
Sep 19, 2022
cd196bb
Translated using Weblate (French)
vincent-hatakeyama Oct 5, 2022
8451d47
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 12, 2022
a45e376
Translated using Weblate (Italian)
mymage Dec 28, 2022
c8b3620
Translated using Weblate (Italian)
mymage Jan 9, 2023
d90de60
Translated using Weblate (Italian)
francesco-ooops Jan 10, 2023
36caf42
Translated using Weblate (Italian)
mymage Jan 26, 2023
bade1ae
[IMP] hr_timesheet_sheet: timesheet_sheet_ids on hr.employee
carmenbianca Jun 3, 2022
0ab8d3b
[MIG] hr_timesheet_sheet: Migration to 16.0
tarteo Mar 21, 2023
ac9709a
Fix for https://github.com/odoo/odoo/pull/120597
tarteo Jun 29, 2023
0f1b8dc
Translated using Weblate (Italian)
mymage Jul 8, 2023
d8192e1
Translated using Weblate (Italian)
mymage Jul 13, 2023
b393815
Translated using Weblate (Italian)
francesco-ooops Jul 28, 2023
c892cb4
Translated using Weblate (Italian)
mymage Aug 8, 2023
a5abd45
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
9163011
Translated using Weblate (Italian)
mymage Aug 22, 2023
c6ad122
Translated using Weblate (Italian)
mymage Sep 4, 2023
1b57e66
Translated using Weblate (Spanish)
Ivorra78 Sep 15, 2023
a4f4e0e
Translated using Weblate (Spanish)
Ivorra78 Sep 20, 2023
886a655
[FIX] hr_timesheet_sheet: `image_128` -> `avatar_128`
MiquelRForgeFlow Oct 10, 2023
ab09434
Translated using Weblate (Italian)
mymage Oct 10, 2023
b2ccbdb
Translated using Weblate (Italian)
mymage Oct 11, 2023
761caa1
Translated using Weblate (Italian)
francesco-ooops Oct 13, 2023
3aeb05b
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 27, 2023
40a03a1
Translated using Weblate (French)
remi-filament Nov 6, 2023
492df25
Translated using Weblate (Catalan)
pere-aquarian Nov 18, 2023
41eb08c
Translated using Weblate (Italian)
mymage Nov 23, 2023
14d34d5
Translated using Weblate (Italian)
mymage Jan 22, 2024
a46fac2
Translated using Weblate (Swedish)
jakobkrabbe Feb 26, 2024
0479e8b
[16.0][FIX] hr_timesheet_sheet: permissions on access to menus
LauraCForgeFlow Mar 5, 2024
25adf8b
[16.0][FIX] hr_timesheet_sheet: update translations (Spanish)
LauraCForgeFlow Mar 5, 2024
cb42fd6
Translated using Weblate (Italian)
mymage Mar 14, 2024
1ead121
[FIX] hr_timesheet_sheet: Don't merge timesheets during onchange
hbrunn Mar 27, 2024
259e9ac
Translated using Weblate (Portuguese)
pedrocs-exo May 1, 2024
1717d1d
Translated using Weblate (Portuguese)
pedrocs-exo May 1, 2024
efb281b
Translated using Weblate (Portuguese (Brazil))
May 20, 2024
45084e5
[REF][16.0] hr_timesheet_sheet: separate class for setUpClass
bealdav Aug 19, 2024
8b3dc54
[FIX] hr_timesheet_sheet: deal with time off line
maisim Sep 10, 2024
ca3795f
[IMP] hr_timesheet_sheet: pre-commit auto fixes
Vijaiy-Selvaraj Oct 18, 2024
e21834c
[MIG] hr_timesheet_sheet: Migration to 17.0
Vijaiy-Selvaraj Oct 18, 2024
588fcba
[IMP] hr_timesheet_sheet: _check_can_write on account.analytic.line a…
Vijaiy-Selvaraj Oct 18, 2024
fe5dbed
[IMP] hr_timesheet_sheet: pre-commit auto fixes
Borruso Nov 26, 2024
c3e2d29
[MIG] hr_timesheet_sheet: Migration to 18.0
Borruso Nov 26, 2024
9fd914c
[DON'T MERGE] test-requirements.txt
Borruso Nov 26, 2024
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
142 changes: 142 additions & 0 deletions hr_timesheet_sheet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
==================
HR Timesheet Sheet
==================

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

.. |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/18.0/hr_timesheet_sheet
: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-hr_timesheet_sheet
: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|

This module supplies a new screen enabling you to manage your work
encoding (timesheet) by period. Timesheet entries are made by employees
each day. At the end of the defined period, employees submit their
validated sheet and the reviewer must then approve submitted entries.
Periods are defined in the company forms and you can set them to run
monthly, weekly or daily. By default, policy is configured to have HR
Officers as reviewers.

**Table of contents**

.. contents::
:local:

Installation
============

This module relies on:

- The OCA module '2D matrix for x2many fields', and can be downloaded
from Github:
https://github.com/OCA/web/tree/16.0/web_widget_x2many_2d_matrix

Configuration
=============

If you want other default ranges different from weekly, you need to go:

- In the menu Configuration -> Settings -> **Timesheet Options**, and
select in **Timesheet Sheet Range** the default range you want.
- When you have a weekly range you can also specify the **Week Start
Day**.

To change who reviews submitted sheets, go to *Configuration > Settings
> Timesheet Options* and configure **Timesheet Sheet Review Policy**
accordingly.

For adding more review policies, look at the
*hr_timesheet_sheet_policy_xxx* extra modules.

Usage
=====

If you modify the Details tab, automatically the Summary tab is updated.
But if you modify the Summary tab, you need to save in order to have the
Details tab updated.

In case you modify the unit amount of both tabs, the Details tab will
prevail. If you modify the Summary tab, and you need to do a change in
the Details tab, please save before.

Known issues / Roadmap
======================

- The timesheet grid is limited to display a max. of 1M cells, due to a
limitation of the tree view limit parameter not being able to
dynamically set a limit. Since default value of odoo, 40 records is
too small, we decided to set 1M, which should be good enough in the
majority of scenarios.

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_timesheet_sheet%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
-------

* ForgeFlow
* Onestein
* CorporateHub

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

- Miquel Raïch <[email protected]>
- Andrea Stirpe <[email protected]>
- Lois Rilo <[email protected]>
- `CorporateHub <https://corporatehub.eu/>`__

- Alexey Pelykh <[email protected]>

- Dennis Sluijk <[email protected]>
- Sunanda Chhatbar <[email protected]>
- `Sodexis <https://www.sodexis.com>`__

- SodexisTeam <[email protected]>
- Sowrirajan <[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/18.0/hr_timesheet_sheet>`_ 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_timesheet_sheet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from . import report
29 changes: 29 additions & 0 deletions hr_timesheet_sheet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2018 ForgeFlow (https://www.forgeflow.com)
# Copyright 2018-2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2018-2019 Onestein (<https://www.onestein.eu>)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "HR Timesheet Sheet",
"version": "18.0.1.0.0",
"category": "Human Resources",
"sequence": 80,
"summary": "Timesheet Sheets, Activities",
"license": "AGPL-3",
"author": "ForgeFlow, Onestein, CorporateHub, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/timesheet",
"installable": True,
"auto_install": False,
"depends": ["hr_timesheet", "sale_timesheet", "web_widget_x2many_2d_matrix"],
"data": [
"data/hr_timesheet_sheet_data.xml",
"security/ir.model.access.csv",
"security/hr_timesheet_sheet_security.xml",
"views/hr_timesheet_sheet_views.xml",
"views/hr_department_views.xml",
"views/hr_employee_views.xml",
"views/account_analytic_line_views.xml",
"views/res_config_settings_views.xml",
],
}
19 changes: 19 additions & 0 deletions hr_timesheet_sheet/data/hr_timesheet_sheet_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- Timesheet sheet related subtypes for messaging / Chatter -->
<record id="mt_timesheet_confirmed" model="mail.message.subtype">
<field name="name">Waiting Review</field>
<field name="res_model">hr_timesheet.sheet</field>
<field name="default" eval="True" />
<field name="description">Waiting review</field>
</record>
<record id="mt_timesheet_approved" model="mail.message.subtype">
<field name="name">Approved</field>
<field name="res_model">hr_timesheet.sheet</field>
<field name="default" eval="True" />
<field name="description">Approved</field>
</record>
</odoo>
Loading
Loading