Skip to content

Commit 491f179

Browse files
MiquelRForgeFlowJordiBForgeFlow
authored andcommitted
[11.0][MIG] hr_timesheet_sheet (OCA#125)
* [10.0] hr_timesheet_sheet * [11.0][MIG] hr_timesheet_sheet * [REMOVE] hr_timesheet.sheet.account * [REMOVE] 'new' state * [ADD] Tests * [UPD] Adapt to multicompany * [ADD] Add more tests (include multicompany tests) * [FIX] project_task_stage_allow_timesheet: show error message only if task * [ADD] Migration scripts to v11
1 parent 822043b commit 491f179

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+36936
-1
lines changed

hr_timesheet_sheet/README.rst

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
3+
:alt: License: AGPL-3
4+
5+
==================
6+
HR Timesheet Sheet
7+
==================
8+
9+
This module supplies a new screen enabling you to manage your work encoding (timesheet) by period.
10+
Timesheet entries are made by employees each day. At the end of the defined period,
11+
employees validate their sheet and the manager must then approve his team's entries.
12+
Periods are defined in the company forms and you can set them to run monthly, weekly or daily.
13+
14+
Negative hours are not admitted.
15+
16+
Installation
17+
============
18+
19+
This module relies on:
20+
21+
* The OCA module '2D matrix for x2many fields', and can be downloaded from
22+
Github: https://github.com/OCA/web/tree/11.0/web_widget_x2many_2d_matrix
23+
24+
25+
Configuration
26+
=============
27+
28+
If you want other default ranges different from weekly, you need to go:
29+
30+
* In the menu `Configuration` -> `Settings` -> **Timesheet Options**,
31+
and select in **Timesheet Sheet Range** the default range you want.
32+
33+
34+
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
35+
:alt: Try me on Runbot
36+
:target: https://runbot.odoo-community.org/runbot/117/11.0
37+
38+
Known issues / Roadmap
39+
======================
40+
41+
* When you open the `Summary` or `Details` tab, a save should be performed
42+
to ensure the data shown is correct. This perhaps could be achieved by including
43+
a .js file that does that.
44+
45+
Bug Tracker
46+
===========
47+
48+
Bugs are tracked on `GitHub Issues
49+
<https://github.com/OCA/hr-timesheet/issues>`_. In case of trouble, please
50+
check there if your issue has already been reported. If you spotted it first,
51+
help us smash it by providing detailed and welcomed feedback.
52+
53+
Credits
54+
=======
55+
56+
Images
57+
------
58+
59+
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
60+
61+
Contributors
62+
------------
63+
64+
* Miquel Raïch <[email protected]>
65+
66+
67+
Maintainer
68+
----------
69+
70+
.. image:: https://odoo-community.org/logo.png
71+
:alt: Odoo Community Association
72+
:target: https://odoo-community.org
73+
74+
This module is maintained by the OCA.
75+
76+
OCA, or the Odoo Community Association, is a nonprofit organization whose
77+
mission is to support the collaborative development of Odoo features and
78+
promote its widespread use.
79+
80+
To contribute to this module, please visit https://odoo-community.org.

hr_timesheet_sheet/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

hr_timesheet_sheet/__manifest__.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2018 Eficent
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
'name': 'HR Timesheet Sheet',
6+
'version': '11.0.1.0.0',
7+
'category': 'Human Resources',
8+
'sequence': 80,
9+
'summary': 'Timesheet Sheets, Activities',
10+
'license': 'AGPL-3',
11+
'author': 'Eficent, Odoo Community Association (OCA)',
12+
'website': 'https://github.com/OCA/hr-timesheet',
13+
'depends': [
14+
'hr_timesheet',
15+
'web_widget_x2many_2d_matrix',
16+
],
17+
'data': [
18+
'security/ir.model.access.csv',
19+
'security/hr_timesheet_sheet_security.xml',
20+
'data/hr_timesheet_sheet_data.xml',
21+
'views/hr_timesheet_sheet_views.xml',
22+
'views/hr_department_views.xml',
23+
'views/res_config_settings_views.xml',
24+
],
25+
'installable': True,
26+
'auto_install': False,
27+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
<data noupdate="1">
4+
5+
<!-- Timesheet sheet related subtypes for messaging / Chatter -->
6+
<record id="mt_timesheet_confirmed" model="mail.message.subtype">
7+
<field name="name">Waiting Approval</field>
8+
<field name="res_model">hr_timesheet.sheet</field>
9+
<field name="default" eval="True"/>
10+
<field name="description">waiting approval</field>
11+
</record>
12+
<record id="mt_timesheet_approved" model="mail.message.subtype">
13+
<field name="name">Approved</field>
14+
<field name="res_model">hr_timesheet.sheet</field>
15+
<field name="default" eval="True"/>
16+
<field name="description">Timesheet approved</field>
17+
</record>
18+
<!-- Department (Parent) related subtypes for messaging / Chatter -->
19+
<record id="mt_department_timesheet_confirmed" model="mail.message.subtype">
20+
<field name="name">Timesheets to Approve</field>
21+
<field name="res_model">hr.department</field>
22+
<field name="default" eval="False"/>
23+
<field name="parent_id" eval="ref('mt_timesheet_confirmed')"/>
24+
<field name="relation_field">department_id</field>
25+
<field name="sequence" eval="5"/>
26+
</record>
27+
<record id="mt_department_timesheet_approved" model="mail.message.subtype">
28+
<field name="name">Timesheets Approved</field>
29+
<field name="res_model">hr.department</field>
30+
<field name="default" eval="False"/>
31+
<field name="parent_id" eval="ref('mt_timesheet_approved')"/>
32+
<field name="relation_field">department_id</field>
33+
<field name="sequence" eval="5"/>
34+
</record>
35+
36+
</data>
37+
</odoo>

0 commit comments

Comments
 (0)