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

[11.0][MIG] hr_timesheet_sheet #125

Merged
merged 9 commits into from
Jun 18, 2018
Merged
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
80 changes: 80 additions & 0 deletions hr_timesheet_sheet/README.rst
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 <[email protected]>


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.
1 change: 1 addition & 0 deletions hr_timesheet_sheet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
27 changes: 27 additions & 0 deletions hr_timesheet_sheet/__manifest__.py
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,
}
37 changes: 37 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,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>
Loading