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

[16.0][MIG] hr_timesheet_sheet #580

Merged
merged 186 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
4cf5b13
[11.0][MIG] hr_timesheet_sheet (#125)
MiquelRForgeFlow Jun 18, 2018
a8c29a6
[UPD] Update hr_timesheet_sheet.pot
oca-travis Jun 18, 2018
875586c
Translated using Weblate (Japanese)
yostashiro Jun 19, 2018
db37c87
Translated using Weblate (Português (Brasil))
Jun 20, 2018
030713a
[11.0][hr_timesheet_sheet]: allow to display more than 40 cells
JordiBForgeFlow Jul 26, 2018
bbc5e6e
hr_timesheet_sheet: add menu 'Timesheet Sheets to Approve'
JordiBForgeFlow Jul 30, 2018
bbbb619
[UPD] Update hr_timesheet_sheet.pot
oca-travis Jul 31, 2018
2b1f974
hr_timesheet_sheet: pass selected project context to task creation
JordiBForgeFlow Aug 2, 2018
cc761b3
[11.0][IMP] hr_timesheet_sheet: ease extensions (#131)
astirpe Sep 11, 2018
d409b47
[UPD] Update hr_timesheet_sheet.pot
oca-travis Sep 11, 2018
df9f2ab
Fix task domain and default project_id
astirpe Sep 20, 2018
d42b253
Bump version
astirpe Sep 20, 2018
3b6162a
[IMP] hr_timesheet_sheet ux
astirpe Sep 20, 2018
aa62875
Code review
astirpe Sep 20, 2018
83ed77a
Update contributors list
astirpe Sep 20, 2018
bad25e6
[UPD] Update hr_timesheet_sheet.pot
oca-travis Sep 20, 2018
99e70a6
[FIX] hr_timesheet_sheet: "Refuse" button name (#134)
astirpe Oct 1, 2018
dff92d5
[UPD] Update hr_timesheet_sheet.pot
oca-travis Oct 1, 2018
02a68b2
[11.0][IMP] hr_timesheet_sheet: merge hr_timesheet_sheet_week_start_d…
LoisRForgeFlow Oct 17, 2018
2dce546
[UPD] Update hr_timesheet_sheet.pot
oca-travis Oct 18, 2018
b5b8aff
restrict selection of projects to those that have 'allow_timsheets' set
JordiBForgeFlow Nov 5, 2018
217a949
[MIG] hr_timesheet_sheet: Migration to 12.0
alexey-pelykh Nov 9, 2018
87e571d
Update translation files
oca-transbot Dec 9, 2018
0ea7066
[FIX] hr_timesheet_sheet: Don't fail tests on Sunday
pedrobaeza Dec 9, 2018
fac1fb9
[IMP] hr_timesheet_sheet: more extendability & cleanup
alexey-pelykh Dec 11, 2018
76de449
[FIX] Fix related fields in hr_timesheet_sheet
AdriaGForgeFlow Dec 18, 2018
0f16d67
[FIX] hr_timesheet_sheet: who approves timesheets should be the manager
MiquelRForgeFlow Dec 17, 2018
fd74521
[FIX]hr_timesheet_sheet : fix singleton error in _compute_line_ids
bizzappdev Dec 27, 2018
fd9adcc
Update translation files
oca-transbot Dec 29, 2018
f7c0e03
[FIX] timesheet sheet lines inconsistency
astirpe Jan 17, 2019
e192bac
[FIX] hr_timesheet_sheet: unlink only generated AAL
alexey-pelykh Feb 15, 2019
281000a
[IMP] hr_timesheet_sheet: texts & formatting
alexey-pelykh Feb 15, 2019
dd0a924
[FIX] hr_timesheet_sheet: sheet_id when modifying the timesheet
astirpe Feb 26, 2019
7fd8d35
[IMP] hr_timesheet_sheet: protect specific list of fields
alexey-pelykh Feb 26, 2019
1926d96
Update translation files
oca-transbot Mar 3, 2019
ed3cedf
[FIX] Avoid cleaning when set to draft
MiquelRForgeFlow Feb 28, 2019
61e703a
[IMP] Make a constant for the '/' name for empty lines
MiquelRForgeFlow Feb 27, 2019
3ae7af3
[FIX] Correctly handle partial amounts of timesheets
MiquelRForgeFlow Feb 18, 2019
9f9b7e0
[IMP] Rename method / parameters to a better descriptive name
MiquelRForgeFlow Feb 18, 2019
7d98269
hr_timesheet_sheet: version bump
alexey-pelykh Mar 5, 2019
f8def33
[FIX] Wrong decorator
astirpe Mar 8, 2019
840e1f1
Update translation files
oca-transbot Mar 17, 2019
65ccb49
Translated using Weblate (Dutch)
Mar 23, 2019
50ae27e
[IMP] hr_timesheet_sheet: fix amount calculation issues + code simpli…
astirpe Mar 25, 2019
95777c9
[FIX] Add lines of other employees
astirpe Mar 28, 2019
b46ed7e
[FIX] hr_timesheet_sheet: sheet name
alexey-pelykh Mar 26, 2019
04df259
[12.0][FIX] hr_timesheet_sheet: subscribe user when confirm (#227)
astirpe Apr 3, 2019
3af2b6b
[FIX] Allow timesheet sheet when employee's company is not set
astirpe Mar 27, 2019
1f7c35e
[UPD] Update hr_timesheet_sheet.pot
oca-travis Apr 8, 2019
7c2e9f1
[ADD] Constraint company_id in timesheet sheet line
astirpe Mar 25, 2019
059d3ee
[ADD] company_id in blacklist of timesheet sheet line
astirpe Mar 25, 2019
19aa080
[REM] Obsolete constraint
astirpe Mar 25, 2019
701943d
[FIX] Consistency of company on projects and employees
astirpe Mar 28, 2019
1d5db46
[IMP] hr_timesheet_sheet: Clearer interface
tarteo Apr 25, 2019
6a67147
[FIX] hr_timesheet_sheet: tests
alexey-pelykh May 1, 2019
fccf198
[UPD] README.rst
OCA-git-bot May 2, 2019
c06cce4
[FIX] hr_timesheet_sheet: consistency with v11
alexey-pelykh May 2, 2019
c6d8782
[FIX]hr_timesheet_sheet : unit amount will display in formate hr:minute
bizzappdev Feb 18, 2019
f278137
[FIX] Don't create analytic lines in onchange
MiquelRForgeFlow Apr 11, 2019
854eeea
[FIX] Tests
MiquelRForgeFlow Apr 11, 2019
51c3633
Update translation files
oca-transbot May 20, 2019
2f7bc61
[IMP] hr_timesheet_sheet: more hooks
alexey-pelykh Jul 1, 2019
8e4f4a5
Translated using Weblate (German)
marylla Jul 10, 2019
fe67a44
Update translation files
oca-transbot Jul 20, 2019
00d4e13
Translated using Weblate (German)
marylla Jul 31, 2019
f3f0f1f
[FIX] Expected singleton
astirpe Jul 12, 2019
ae8a256
[12.0][FIX] Do not remove lines when removing the timesheet sheet
astirpe Jul 30, 2019
75a276c
Translated using Weblate (German)
marylla Aug 8, 2019
39379a0
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
fadcd44
Update translation files
oca-transbot Oct 11, 2019
08b2190
[IMP] hr_timesheet_sheet: review policy
alexey-pelykh May 21, 2019
3efa49d
Update translation files
oca-transbot Nov 5, 2019
5c0edda
[FIX] hr_timesheet_sheet: remove non-existent models
alexey-pelykh Nov 5, 2019
2fd2075
Update translation files
oca-transbot Nov 5, 2019
6945aff
[IMP] hr_timesheet_sheet: error details
alexey-pelykh Nov 7, 2019
3488b73
Update translation files
oca-transbot Nov 8, 2019
3c9dcdf
[ADD] hr_timesheet_sheet: policies
alexey-pelykh Nov 12, 2019
7788fdb
Update translation files
oca-transbot Nov 19, 2019
1259b2f
Translated using Weblate (Spanish)
chienandalu Nov 26, 2019
b47d531
Translated using Weblate (Italian)
primes2h Nov 29, 2019
439def9
Translated using Weblate (German)
marylla Dec 9, 2019
52587dc
[IMP] hr_timesheet_sheet: allow employee to review own non-submitted …
alexey-pelykh Dec 4, 2019
7d99c46
Translated using Weblate (German)
marylla Dec 10, 2019
a88af34
[FIX] hr_timesheet_sheet_policy*: admin always reviewer
astirpe Dec 23, 2019
5463dc5
Update translation files
oca-transbot Dec 24, 2019
31b9607
[FIX] hr_timesheet_sheet: don't store possible_reviewer_ids
alexey-pelykh Dec 23, 2019
82c6bfa
Update translation files
oca-transbot Dec 24, 2019
aaef9d9
[FIX] Clean/merge timesheets when in draft only
astirpe Jan 29, 2020
53d9282
Update translation files
oca-transbot Jan 29, 2020
3eb088f
[FIX] hr_timesheet_sheet: same week in different years is still same
alexey-pelykh Jan 31, 2020
f680acc
Update translation files
oca-transbot Jan 31, 2020
03bf451
[FIX] hr_timesheet_sheet: use unique IDs in line generation
alexey-pelykh Dec 28, 2019
8a29b84
Update translation files
oca-transbot Feb 4, 2020
1cd38a3
Translated using Weblate (Spanish)
pedrobaeza Feb 6, 2020
e6f0e4c
[IMP] hr_timesheet_sheet: hooks
alexey-pelykh Feb 6, 2020
bae1d84
[IMP] hr_timesheet_sheet: add id to allow modules add options
alexey-pelykh Feb 11, 2020
4e0b18c
hr_timesheet_sheet: fix FR translation that trigger a crash
alexis-via Feb 11, 2020
388d15e
[IMP] hr_timesheet_sheet: add kanban view
alexey-pelykh Feb 12, 2020
7f47876
Translated using Weblate (Italian)
Feb 13, 2020
b5ebe10
Update translation files
oca-transbot Feb 13, 2020
ac6eb9a
[IMP] hr_timesheet_sheet: _get_subscribers hook
alexey-pelykh Feb 14, 2020
6013cb2
[FIX] hr_timesheet_sheet: lost kanban mode
alexey-pelykh Feb 14, 2020
b7c91b5
Translated using Weblate (Dutch)
Apr 3, 2020
97e7559
[FIX] hr_timesheet_sheet: drop fuzzy+python-format translations
alexey-pelykh Apr 3, 2020
e406a00
[IMP] : black, isort
Mar 2, 2020
468ab9f
[MIG] hr_timesheet_sheet: Migration to 13.0
Mar 2, 2020
1bee737
[IMP] hr_timesheet_sheet: black, isort, prettier
MiquelRForgeFlow Apr 6, 2020
398927e
[MIG] hr_timesheet_sheet: Migration to 13.0 (complete)
MiquelRForgeFlow Apr 3, 2020
2f66430
[UPD] Update hr_timesheet_sheet.pot
oca-travis Apr 7, 2020
c5d4a71
[UPD] README.rst
OCA-git-bot Apr 7, 2020
37a4918
Update translation files
oca-transbot Apr 12, 2020
48a0083
[FIX] hr_timesheet_sheet: openupgrade
alexey-pelykh Apr 12, 2020
3647a46
[FIX] failing tests, linting
May 22, 2020
9686345
hr_timesheet_sheet 13.0.1.0.1
OCA-git-bot May 23, 2020
675ecdf
Update translation files
oca-transbot Aug 16, 2020
0fab22f
[UPD] Update hr_timesheet_sheet.pot
oca-travis Sep 29, 2020
1a295d4
Update translation files
oca-transbot Sep 29, 2020
8122806
Translated using Weblate (French)
pedrobaeza Oct 14, 2020
1de8ef9
[FIX] hr_timesheet_sheet WARNING DB odoo.osv.expression: The domain …
vishalaktiv Oct 20, 2020
c494b00
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
3310f04
[UPD] README.rst
OCA-git-bot Nov 8, 2020
326c690
[FIX] hr_timesheet_sheet: Add review policies for other groups
pedrobaeza Aug 18, 2020
58d5597
[UPD] Update hr_timesheet_sheet.pot
oca-travis Nov 30, 2020
e790602
hr_timesheet_sheet 13.0.1.1.0
OCA-git-bot Nov 30, 2020
50fae99
Update translation files
oca-transbot Nov 30, 2020
1a052a9
[UPD] Update hr_timesheet_sheet.pot
oca-travis Nov 30, 2020
a6716d1
[FIX] Typo
ypapouin Dec 14, 2020
0362197
[UPD] Update hr_timesheet_sheet.pot
oca-travis Jan 7, 2021
ad88ad0
hr_timesheet_sheet 13.0.1.1.1
OCA-git-bot Jan 7, 2021
7eafaea
Update translation files
oca-transbot Jan 7, 2021
fd4d68d
Translated using Weblate (Dutch)
tarteo Feb 11, 2021
448ef13
[IMP] hr_timesheet_sheet: black, isort, prettier
schhatbar-initos Mar 9, 2021
d5e084e
[14.0][MIG]hr_timesheet_sheet
schhatbar-initos Mar 9, 2021
b731a52
[UPD] Update hr_timesheet_sheet.pot
oca-travis Mar 31, 2021
42b4ad6
[UPD] README.rst
OCA-git-bot Mar 31, 2021
db3c1ac
Added translation using Weblate (French (France))
Yvesldff Apr 10, 2021
3264c61
Translated using Weblate (French (France))
Yvesldff Apr 10, 2021
2f886c7
Translated using Weblate (French (France))
Yvesldff Apr 11, 2021
d9189d6
Translated using Weblate (German)
OSevangelist May 5, 2021
a16b570
Translated using Weblate (French)
Yvesldff May 14, 2021
46d0a5c
[UPD] Update hr_timesheet_sheet.pot
oca-travis Jul 1, 2021
da00b86
Update translation files
oca-transbot Jul 1, 2021
fd0c808
[14.0] [FIX] hr_timesheet_sheet Week %s translation
innovara Jul 21, 2021
9dcca1b
hr_timesheet_sheet 14.0.1.0.1
OCA-git-bot Jul 21, 2021
e85f3bd
[UPD] Update hr_timesheet_sheet.pot
oca-travis Oct 11, 2021
7d0a8ef
Update translation files
oca-transbot Oct 11, 2021
4e4efab
[IMP] hr_timesheet_sheet: Screenshot added for quick understanding
tarbib Oct 11, 2021
61cdf8c
[UPD] README.rst
OCA-git-bot Oct 14, 2021
acad622
hr_timesheet_sheet 14.0.1.0.2
OCA-git-bot Oct 14, 2021
356b3dc
Translated using Weblate (Swedish)
simonstromb Nov 15, 2021
4fc81d7
Translated using Weblate (Swedish)
simonstromb Nov 16, 2021
3b64030
Translated using Weblate (Swedish)
simonstromb Nov 22, 2021
ef6c088
Translated using Weblate (Swedish)
simonstromb Nov 23, 2021
302d86f
Translated using Weblate (Swedish)
simonstromb Nov 30, 2021
f07bd2d
Translated using Weblate (Swedish)
simonstromb Nov 30, 2021
55224ac
Translated using Weblate (Dutch)
bosd Feb 1, 2022
cfd37ad
Translated using Weblate (Dutch)
bosd Feb 8, 2022
cd15a39
Do not merge invoiced timesheet lines
Oct 13, 2021
400562b
Do not try to remove invoiced lines
Jun 15, 2021
404043a
hr_timesheet_sheet 14.0.1.0.3
OCA-git-bot Mar 11, 2022
ae08c89
hr_timesheet_sheet 14.0.1.0.4
OCA-git-bot Mar 19, 2022
0e7e5c2
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
5643a9b
[FIX] hr_timesheet_sheet: Add sale_timesheet dependency (timesheet_in…
victoralmau Apr 12, 2022
b2ced21
hr_timesheet_sheet 14.0.1.1.0
OCA-git-bot Apr 13, 2022
a6543fa
[IMP] hr_timesheet_sheet: black, isort, prettier
CRogos Apr 22, 2022
3095f86
[MIG] hr_timesheet_sheet: Migration to 15.0
CRogos Apr 22, 2022
473ff8b
Fix python-format translation issues.
Sep 19, 2022
6249ec6
[UPD] Update hr_timesheet_sheet.pot
Sep 21, 2022
8b56ded
[UPD] README.rst
OCA-git-bot Sep 21, 2022
a615a05
Translated using Weblate (French)
vincent-hatakeyama Oct 5, 2022
20823b7
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 12, 2022
6cfb6c5
[UPD] Update hr_timesheet_sheet.pot
Nov 27, 2022
ecab8ec
Update translation files
weblate Nov 27, 2022
272af2a
Translated using Weblate (Italian)
mymage Dec 28, 2022
00631ad
Translated using Weblate (Italian)
mymage Jan 9, 2023
50e47b2
Translated using Weblate (Italian)
francesco-ooops Jan 10, 2023
d04f6b3
Translated using Weblate (Italian)
mymage Jan 26, 2023
47bf54b
[IMP] hr_timesheet_sheet: timesheet_sheet_ids on hr.employee
carmenbianca Jun 3, 2022
1a458e5
[UPD] Update hr_timesheet_sheet.pot
Feb 10, 2023
29f19a1
hr_timesheet_sheet 15.0.1.1.0
OCA-git-bot Feb 10, 2023
bc8b34a
Update translation files
weblate Feb 10, 2023
6072971
[IMP] hr_timesheet_sheet: pre-commit stuff
tarteo Feb 28, 2023
17ef581
[MIG] hr_timesheet_sheet: Migration to 16.0
tarteo Mar 21, 2023
9403521
[DON'T MERGE] test-requirements.txt
tarteo Mar 24, 2023
b5f6372
Fix for https://github.com/odoo/odoo/pull/120597
tarteo Jun 29, 2023
7041df0
remove test dependency
tarteo Jun 29, 2023
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
128 changes: 128 additions & 0 deletions hr_timesheet_sheet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
==================
HR Timesheet Sheet
==================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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_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-15-0/timesheet-15-0-hr_timesheet_sheet
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/117/15.0
:alt: Try me on Runbot

|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/11.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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/timesheet/issues/new?body=module:%20hr_timesheet_sheet%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
~~~~~~~

* 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]>

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_timesheet_sheet>`_ project on GitHub.

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

from . import models
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": "16.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