Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a4a18e8
[ADD] maintenance_timesheet
dalonsod Oct 1, 2019
c7058b4
[IMP] maintenance_timesheet: black, isort
dalonsod Mar 3, 2020
1cbfdb7
[MIG] maintenance_timesheet: Migration to 13.0
dalonsod Mar 3, 2020
9d92e67
[IMP] maintenance_timesheet: add report support for requests
dalonsod Dec 17, 2020
32fe911
[MIG] maintenance_timesheet: Migration to 14.0
dalonsod Jan 19, 2021
f6b587b
Added translation using Weblate (Italian)
mymage Jul 28, 2021
1ca6057
Translated using Weblate (Italian)
mymage Jul 28, 2021
0248510
[IMP] maintenance_timesheet: Add timesheet page from maintenance requ…
victoralmau Dec 21, 2022
fcf5a9e
Translated using Weblate (Italian)
mymage Dec 26, 2022
100378f
[MIG] maintenance_timesheet: Migration to 15.0
victoralmau Jan 5, 2023
850e987
[UPD] Update maintenance_timesheet.pot
Jan 12, 2023
9343f24
[UPD] README.rst
OCA-git-bot Jan 12, 2023
db17b38
Translated using Weblate (Italian)
mymage Jul 4, 2023
0db0ade
Translated using Weblate (Spanish)
Ivorra78 Jul 6, 2023
4c81865
[IMP] maintenance_timesheet: pre-commit stuff
Jul 20, 2023
439b83c
[MIG] maintenance_timesheet: Migration to 16.0
Jul 20, 2023
e1d8e79
[UPD] Update maintenance_timesheet.pot
Sep 6, 2023
b04f7e0
Update translation files
weblate Sep 6, 2023
85fb164
Translated using Weblate (Spanish)
Ivorra78 Sep 7, 2023
4a12631
Translated using Weblate (Italian)
mymage Sep 12, 2023
b961670
[IMP] maintenance_timesheet: use create_multi in account.analytic.line
Mar 11, 2024
b55330a
[BOT] post-merge updates
OCA-git-bot Mar 11, 2024
dc0786a
Translated using Weblate (Italian)
mymage Mar 14, 2024
70c8d49
[IMP] maintenance_project: Remove the Project > Administrator permiss…
victoralmau Sep 13, 2024
120911d
[BOT] post-merge updates
OCA-git-bot Sep 23, 2024
f9d789d
[IMP] maintenance_timesheet: pre-commit auto fixes
BhaveshHeliconia Jan 24, 2025
c88c4e8
[17.0][FIX] maintenance_timesheet: missing report
FernandoRomera Sep 13, 2024
0342277
[MIG] maintenance_timesheet: Migration to 18.0
BhaveshHeliconia Mar 28, 2025
182a5f8
[UPD] Update maintenance_timesheet.pot
Jun 24, 2025
8349779
[BOT] post-merge updates
OCA-git-bot Jun 24, 2025
f7eeba0
[FIX] maintenance_timesheet: Define the correct rule to show only wha…
victoralmau Jul 24, 2025
ef4c24c
[BOT] post-merge updates
OCA-git-bot Jul 24, 2025
740673f
[OU-FIX] maintenance_timesheet: Define the correct path in load_data
victoralmau Jul 25, 2025
f64f8b8
[OU-FIX] maintenance_timesheet: Pass env instead of cr
pedrobaeza Jul 27, 2025
6a1d274
Translated using Weblate (Italian)
mymage Nov 6, 2025
fc891dc
[MIG] maintenance_timesheet: Migration to 19.0
emorisset-cem May 7, 2026
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
85 changes: 85 additions & 0 deletions maintenance_timesheet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

======================
Maintenance Timesheets
======================

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

.. |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/license-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%2Fmaintenance-lightgray.png?logo=github
:target: https://github.com/OCA/maintenance/tree/19.0/maintenance_timesheet
:alt: OCA/maintenance
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/maintenance-19-0/maintenance-19-0-maintenance_timesheet
: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/maintenance&target_branch=19.0
:alt: Try me on Runboat

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

This module adds timesheets to a request.

**Table of contents**

.. contents::
:local:

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

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

* Solvos

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

- David Alonso <david.alonso@solvos.es>
- Luisa Miguéns <luisa.miguens@solvos.es>
- Christian Ramos <c.ramos@binhex.es>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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/maintenance <https://github.com/OCA/maintenance/tree/19.0/maintenance_timesheet>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions maintenance_timesheet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import report
20 changes: 20 additions & 0 deletions maintenance_timesheet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © 2020 Solvos Consultoría Informática (<http://www.solvos.es>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Maintenance Timesheets",
"summary": "Adds timesheets to maintenance requests",
"author": "Odoo Community Association (OCA), Solvos",
"license": "AGPL-3",
"version": "19.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/maintenance",
"depends": ["maintenance_project", "hr_timesheet"],
"data": [
"security/maintenance_timesheet_security.xml",
"views/hr_timesheet_views.xml",
"views/maintenance_request_views.xml",
"report/maintenance_request_report.xml",
],
"demo": ["demo/demo_maintenance_timesheet.xml"],
"installable": True,
}
45 changes: 45 additions & 0 deletions maintenance_timesheet/demo/demo_maintenance_timesheet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<odoo noupdate="1">
<record id="hr_timesheet.group_hr_timesheet_user" model="res.groups">
<field name="user_ids" eval="[(4, ref('base.user_demo')),]" />
</record>
<record id="request_1" model="maintenance.request">
<field name="name">Corrective #1 for Generic Monitor</field>
<field name="equipment_id" ref="maintenance_project.equipment_1" />
<field
name="schedule_date"
eval="(DateTime.now() + relativedelta(days=-1)).strftime('%Y-%m-%d')"
/>
<field name="user_id" ref="base.user_admin" />
<field name="project_id" ref="maintenance_project.project_project_1" />
<field name="task_id" ref="maintenance_project.project_task_12" />
<field name="maintenance_type">corrective</field>
</record>
<record id="timesheet_11" model="account.analytic.line">
<field
name="date"
eval="(DateTime.now() + relativedelta(days=-1)).strftime('%Y-%m-%d')"
/>
<field name="name">Request tasks done</field>
<field name="maintenance_request_id" ref="maintenance_timesheet.request_1" />
<field name="user_id" ref='base.user_admin' />
<field name="project_id" ref="maintenance_project.project_project_1" />
<field name="task_id" ref="maintenance_project.project_task_12" />
<field name="unit_amount" eval="2.0" />
</record>
<record id="maintenance.m_request_8" model="maintenance.request">
<field name="project_id" ref="maintenance_project.project_project_1" />
<field name="task_id" ref="maintenance_project.project_task_11" />
</record>
<record id="timesheet_21" model="account.analytic.line">
<field
name="date"
eval="(DateTime.now() + relativedelta(days=-1)).strftime('%Y-%m-%d')"
/>
<field name="name">Touchpad repaired</field>
<field name="maintenance_request_id" ref="maintenance.m_request_8" />
<field name="user_id" ref='base.user_demo' />
<field name="project_id" ref="maintenance_project.project_project_1" />
<field name="task_id" ref="maintenance_project.project_task_11" />
<field name="unit_amount" eval="3" />
</record>
</odoo>
161 changes: 161 additions & 0 deletions maintenance_timesheet/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-10-04 08:28+0000\n"
"PO-Revision-Date: 2023-09-07 16:37+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.hr_equipment_request_view_kanban
msgid "<span class=\"o_label\">Hours</span>"
msgstr "<span class=\"o_label\">horas</span>"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.hr_equipment_request_view_form
msgid ""
"<span class=\"o_stat_text\">\n"
" Hours\n"
" </span>"
msgstr ""
"<span class=\"o_stat_text\">\n"
" Horas\n"
" </span>"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "<span id=\"timesheet_information_title\">Timesheet Entries</span>"
msgstr ""
"<span id=\"timesheet_information_title\">Entradas en la hoja de horas</span>"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "<strong>Timesheet Total Hours:</strong>"
msgstr "<strong>Horas totales de la hoja de horas:</strong>"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "<strong>Total</strong>"
msgstr "<strong>Total</strong>"

#. module: maintenance_timesheet
#: model:ir.model,name:maintenance_timesheet.model_account_analytic_line
msgid "Analytic Line"
msgstr "Cuenta analítica"

#. module: maintenance_timesheet
#. odoo-python
#: code:addons/maintenance_timesheet/models/hr_timesheet.py:0
#, python-format
msgid ""
"Cannot save or delete a timesheet for a maintenance request already done"
msgstr ""
"No se puede editar o borrar un parte de trabajo de una petición de "
"mantenimiento ya finalizada"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "Date"
msgstr "fecha"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "Description"
msgstr "descripción"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.equipment_request_view_form
msgid "Duration (Hour(s))"
msgstr "Duración (Hora(s))"

#. module: maintenance_timesheet
#: model:ir.model,name:maintenance_timesheet.model_maintenance_equipment
msgid "Maintenance Equipment"
msgstr "Equipo"

#. module: maintenance_timesheet
#: model:ir.model,name:maintenance_timesheet.model_maintenance_request
#: model:ir.model.fields,field_description:maintenance_timesheet.field_account_analytic_line__maintenance_request_id
#: model:ir.model.fields,field_description:maintenance_timesheet.field_timesheets_analysis_report__maintenance_request_id
msgid "Maintenance Request"
msgstr "Petición de mantenimiento"

#. module: maintenance_timesheet
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__planned_hours
msgid "Planned Hours"
msgstr "Horas planificadas"

#. module: maintenance_timesheet
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__progress
msgid "Progress"
msgstr "progreso"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "Project -"
msgstr "proyecto-"

#. module: maintenance_timesheet
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__remaining_hours
msgid "Remaining Hours"
msgstr "Horas restantes"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.hr_timesheet_line_search
msgid "Request"
msgstr "Petición"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "Responsible"
msgstr "Responsable"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "Task"
msgstr "Tarea"

#. module: maintenance_timesheet
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.report_maintenance_request_document
msgid "Time"
msgstr "Tiempo"

#. module: maintenance_timesheet
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__timesheet_total_hours
msgid "Timesheet Total Hours"
msgstr "Horas totales en partes de trabajo"

#. module: maintenance_timesheet
#: model:ir.actions.act_window,name:maintenance_timesheet.timesheet_action_from_request
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__timesheet_ids
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.equipment_request_view_form
msgid "Timesheets"
msgstr "Partes de trabajo"

#. module: maintenance_timesheet
#: model:ir.model,name:maintenance_timesheet.model_timesheets_analysis_report
msgid "Timesheets Analysis Report"
msgstr ""

#~ msgid "<span class=\"o_label\" >Hours</span>"
#~ msgstr "<span class=\"o_label\" >horas</span>"

#~ msgid "Display Name"
#~ msgstr "nombre para mostrar"

#~ msgid "ID"
#~ msgstr "ID(identificador)"

#~ msgid "Last Modified on"
#~ msgstr "modificado por última vez el"
Loading
Loading