Skip to content
Open
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
104 changes: 104 additions & 0 deletions hr_work_entry_timesheet_validate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
=========================================
Work Entry with timesheets and validation
=========================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/18.0/hr_work_entry_timesheet_validate
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_work_entry_timesheet_validate
: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/hr&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module is a glue module between hr_work_entry_timesheet and
hr_work_entry_validate, allowing to show timesheet on new views created
for simple employees.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Usage
=====

- Go to *Employees* / *My Work Entries*

- In the calendar view for work entries, you get :

- hatched entries when discrepancy are found
- timesheet duration on card view (when clicking on an entry)

- Timesheet duration has also been added on Work entries form, tree and
pivot views.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/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/hr/issues/new?body=module:%20hr_work_entry_timesheet_validate%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
-------

* Le Filament

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

- Rémi remi-filament (https://le-filament.com)

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.

.. |maintainer-remi-filament| image:: https://github.com/remi-filament.png?size=40px
:target: https://github.com/remi-filament
:alt: remi-filament

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-remi-filament|

This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/18.0/hr_work_entry_timesheet_validate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
19 changes: 19 additions & 0 deletions hr_work_entry_timesheet_validate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Work Entry with timesheets and validation",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Human Resources/Employees",
"website": "https://github.com/OCA/hr",
"author": "Le Filament, Odoo Community Association (OCA)",
"maintainers": ["remi-filament"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"hr_work_entry_timesheet",
"hr_work_entry_validate",
],
"data": [
"views/hr_work_entry_view.xml",
],
}
3 changes: 3 additions & 0 deletions hr_work_entry_timesheet_validate/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions hr_work_entry_timesheet_validate/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Rémi remi-filament (https://le-filament.com)
1 change: 1 addition & 0 deletions hr_work_entry_timesheet_validate/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module is a glue module between hr_work_entry_timesheet and hr_work_entry_validate, allowing to show timesheet on new views created for simple employees.
7 changes: 7 additions & 0 deletions hr_work_entry_timesheet_validate/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Go to *Employees* / *My Work Entries*

- In the calendar view for work entries, you get :
- hatched entries when discrepancy are found
- timesheet duration on card view (when clicking on an entry)

- Timesheet duration has also been added on Work entries form, tree and pivot views.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions hr_work_entry_timesheet_validate/static/description/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions hr_work_entry_timesheet_validate/static/description/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Module name</h2>
<p>This module was written to extend the functionality of ... to support ... and allow you to ...</p>
</div>
</div>
</section>

<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Installation</h2>
</div>
<div class="oe_span6">
<p class="oe_mt32">To install this module, you need to:
<ul>
<li>...</li>
</ul>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm">
<img src="crm_sc_01.png">
</a>
</div>
</div>
</div>
</section>

<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Configuration</h2>
</div>
<div class="oe_span6">
<p class="oe_mt32">To configure this module, you need to:
<ul>
<li>...</li>
</ul>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm">
<img src="crm_sc_01.png">
</a>
</div>
</div>
</div>
</section>

<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Usage</h2>
</div>
<div class="oe_span6">
<p class="oe_mt32">To use this module, you need to:
<ul>
<li>...</li>
</ul>
</p>
<p class="oe_mt32">For further information, please visit:
<ul>
<li><a href="https://www.odoo.com/forum/help-1">https://www.odoo.com/forum/help-1</a></li>
</ul>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm">
<img src="crm_sc_01.png">
</a>
</div>
</div>
</div>
</section>

<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Known issues / Roadmap</h2>
</div>
<div class="oe_span6">
<p class="oe_mt32">
<ul>
<li>...</li>
</ul>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm">
<img src="crm_sc_01.png">
</a>
</div>
</div>
</div>
</section>

<section class="oe_container oe_dark">
<div class="oe_row">
<div class="oe_span12">
<h2 class="oe_slogan">Credits</h2>
</div>
<div class="oe_span12">
<h3>Contributors</h3>
<ul>
<li>Firstname Lastname &lt;<a href="mailto:email.address@example.com">email.address@example.com</a>&gt;</li>
</ul>
</div>
<div class="oe_span12">
<h3>Maintainer</h3>
<p>
This module is maintained by the OCA.<br/>
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.<br/>
To contribute to this module, please visit <a href="http://odoo-community.org">http://odoo-community.org</a>.<br/>
<a href="http://odoo-community.org"><img class="oe_picture oe_centered" src="http://odoo-community.org/logo.png"></a>
</p>
</div>
</div>
</section>
56 changes: 56 additions & 0 deletions hr_work_entry_timesheet_validate/views/hr_work_entry_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2025- Le Filament (https://le-filament.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="hr_work_entry_timesheet_validate_view_calendar" model="ir.ui.view">
<field name="name">hr.work.entry.calendar.with_timesheet_validate</field>
<field name="model">hr.work.entry</field>
<field
name="inherit_id"
ref="hr_work_entry_validate.hr_work_entry_view_calendar"
/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="duration" widget="float_time" readonly="1" />
<field name="timesheet_duration" widget="float_time" readonly="1" />
<field name="is_hatched" invisible="1" />
</field>
</field>
</record>

<record id="hr_work_entry_timesheet_validate_view_form" model="ir.ui.view">
<field name="name">hr.work.entry.form.with_timesheet_validate</field>
<field name="model">hr.work.entry</field>
<field name="inherit_id" ref="hr_work_entry_validate.hr_work_entry_view_form" />
<field name="arch" type="xml">
<field name="company_id" position="before">
<field name="timesheet_duration" widget="float_time" readonly="1" />
</field>
</field>
</record>

<record id="hr_work_entry_timesheet_validate_view_tree" model="ir.ui.view">
<field name="name">hr.work.entry.tree.with_timesheet_validate</field>
<field name="model">hr.work.entry</field>
<field name="inherit_id" ref="hr_work_entry_validate.hr_work_entry_view_tree" />
<field name="arch" type="xml">
<field name="duration" position="after">
<field name="timesheet_duration" widget="float_time" readonly="1" />
</field>
</field>
</record>

<record id="hr_work_entry_timesheet_validate_view_pivot" model="ir.ui.view">
<field name="name">hr.work.entry.pivot.with_timesheet_validate</field>
<field name="model">hr.work.entry</field>
<field
name="inherit_id"
ref="hr_work_entry_validate.hr_work_entry_view_pivot"
/>
<field name="arch" type="xml">
<field name="duration" position="after">
<field name="timesheet_duration" widget="float_time" readonly="1" />
</field>
</field>
</record>
</odoo>
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
odoo-addon-hr_work_entry_timesheet @ git+https://github.com/OCA/hr.git@refs/pull/1523/head#subdirectory=hr_work_entry_timesheet
odoo-addon-hr_work_entry_validate @ git+https://github.com/OCA/hr.git@refs/pull/1524/head#subdirectory=hr_work_entry_validate
Loading