Skip to content

Commit

Permalink
Merge PR #352 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Sep 6, 2023
2 parents 59e094a + c46097d commit a6e7219
Show file tree
Hide file tree
Showing 23 changed files with 1,617 additions and 0 deletions.
78 changes: 78 additions & 0 deletions maintenance_timesheet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
======================
Maintenance Timesheets
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a3af16571faa620b072191148b6b2117b43fcbef94109d9af481ffedd60afdfe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/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%2Fmaintenance-lightgray.png?logo=github
:target: https://github.com/OCA/maintenance/tree/16.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-16-0/maintenance-16-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=16.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:%2016.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>

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/16.0/maintenance_timesheet>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions maintenance_timesheet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
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": "16.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/maintenance",
"depends": ["base_maintenance", "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": ["data/demo_maintenance_timesheet.xml"],
"installable": True,
}
45 changes: 45 additions & 0 deletions maintenance_timesheet/data/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="users" 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>
158 changes: 158 additions & 0 deletions maintenance_timesheet/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# 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-07-06 20:08+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_form
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_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.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
#: 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:ir.model.fields,field_description:maintenance_timesheet.field_account_analytic_line__display_name
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_equipment__display_name
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__display_name
msgid "Display Name"
msgstr "nombre para mostrar"

#. 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.fields,field_description:maintenance_timesheet.field_account_analytic_line__id
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_equipment__id
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request__id
msgid "ID"
msgstr "ID(identificador)"

#. module: maintenance_timesheet
#: model:ir.model.fields,field_description:maintenance_timesheet.field_account_analytic_line____last_update
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_equipment____last_update
#: model:ir.model.fields,field_description:maintenance_timesheet.field_maintenance_request____last_update
msgid "Last Modified on"
msgstr "modificado por última vez el"

#. 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_hr_timesheet_switch__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"
Loading

0 comments on commit a6e7219

Please sign in to comment.