forked from OCA/timesheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
e7c7d73
commit c2f422d
Showing
97 changed files
with
36,932 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
.. 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 | ||
|
||
================== | ||
HR Timesheet Sheet | ||
================== | ||
|
||
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 validate their sheet and the manager must then approve his team's entries. | ||
Periods are defined in the company forms and you can set them to run monthly, weekly or daily. | ||
|
||
Negative hours are not admitted. | ||
|
||
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. | ||
|
||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/117/11.0 | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* When you open the `Summary` or `Details` tab, a save should be performed | ||
to ensure the data shown is correct. This perhaps could be achieved by including | ||
a .js file that does that. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/hr-timesheet/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Miquel Raïch <miquel.raich@eficent.com> | ||
|
||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2018 Eficent | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': 'HR Timesheet Sheet', | ||
'version': '11.0.1.0.0', | ||
'category': 'Human Resources', | ||
'sequence': 80, | ||
'summary': 'Timesheet Sheets, Activities', | ||
'license': 'AGPL-3', | ||
'author': 'Eficent, Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/hr-timesheet', | ||
'depends': [ | ||
'hr_timesheet', | ||
'web_widget_x2many_2d_matrix', | ||
], | ||
'data': [ | ||
'security/ir.model.access.csv', | ||
'security/hr_timesheet_sheet_security.xml', | ||
'data/hr_timesheet_sheet_data.xml', | ||
'views/hr_timesheet_sheet_views.xml', | ||
'views/hr_department_views.xml', | ||
'views/res_config_settings_views.xml', | ||
], | ||
'installable': True, | ||
'auto_install': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="1"> | ||
|
||
<!-- Timesheet sheet related subtypes for messaging / Chatter --> | ||
<record id="mt_timesheet_confirmed" model="mail.message.subtype"> | ||
<field name="name">Waiting Approval</field> | ||
<field name="res_model">hr_timesheet.sheet</field> | ||
<field name="default" eval="True"/> | ||
<field name="description">waiting approval</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">Timesheet approved</field> | ||
</record> | ||
<!-- Department (Parent) related subtypes for messaging / Chatter --> | ||
<record id="mt_department_timesheet_confirmed" model="mail.message.subtype"> | ||
<field name="name">Timesheets to Approve</field> | ||
<field name="res_model">hr.department</field> | ||
<field name="default" eval="False"/> | ||
<field name="parent_id" eval="ref('mt_timesheet_confirmed')"/> | ||
<field name="relation_field">department_id</field> | ||
<field name="sequence" eval="5"/> | ||
</record> | ||
<record id="mt_department_timesheet_approved" model="mail.message.subtype"> | ||
<field name="name">Timesheets Approved</field> | ||
<field name="res_model">hr.department</field> | ||
<field name="default" eval="False"/> | ||
<field name="parent_id" eval="ref('mt_timesheet_approved')"/> | ||
<field name="relation_field">department_id</field> | ||
<field name="sequence" eval="5"/> | ||
</record> | ||
|
||
</data> | ||
</odoo> |
Oops, something went wrong.