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

[17.0][MIG] maintenance_timesheet: Migration to 17.0 #418

Merged
merged 25 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
edb7a8f
[ADD] maintenance_timesheet
dalonsod Oct 1, 2019
763b7b9
[IMP] maintenance_timesheet: black, isort
dalonsod Mar 3, 2020
335c844
[MIG] maintenance_timesheet: Migration to 13.0
dalonsod Mar 3, 2020
5aa2a05
[IMP] maintenance_timesheet: add report support for requests
dalonsod Dec 17, 2020
e4bc93d
[MIG] maintenance_timesheet: Migration to 14.0
dalonsod Jan 19, 2021
84faab1
Added translation using Weblate (Italian)
mymage Jul 28, 2021
096f45a
Translated using Weblate (Italian)
mymage Jul 28, 2021
856bd52
[IMP] maintenance_timesheet: Add timesheet page from maintenance requ…
victoralmau Dec 21, 2022
8e89dee
Translated using Weblate (Italian)
mymage Dec 26, 2022
ad6186b
[MIG] maintenance_timesheet: Migration to 15.0
victoralmau Jan 5, 2023
41e04a4
[UPD] Update maintenance_timesheet.pot
Jan 12, 2023
f6efbe5
[UPD] README.rst
OCA-git-bot Jan 12, 2023
77ced4a
Translated using Weblate (Italian)
mymage Jul 4, 2023
b964cb6
Translated using Weblate (Spanish)
Ivorra78 Jul 6, 2023
6fa7428
[IMP] maintenance_timesheet: pre-commit stuff
Christian-RB Jul 20, 2023
2d1de40
[MIG] maintenance_timesheet: Migration to 16.0
Christian-RB Jul 20, 2023
8229a2e
[UPD] Update maintenance_timesheet.pot
Sep 6, 2023
1fe044d
Update translation files
weblate Sep 6, 2023
efae997
Translated using Weblate (Spanish)
Ivorra78 Sep 7, 2023
ab61c40
Translated using Weblate (Italian)
mymage Sep 12, 2023
cb71dd8
[IMP] maintenance_timesheet: use create_multi in account.analytic.line
IT-Ideas Mar 11, 2024
c8d284c
[BOT] post-merge updates
OCA-git-bot Mar 11, 2024
03cadae
Translated using Weblate (Italian)
mymage Mar 14, 2024
4ecc96d
[IMP] maintenance_timesheet: pre-commit auto fixes
FernandoRomera Aug 8, 2024
bd85f98
[MIG] maintenance_timesheet: Migration to 17.0
FernandoRomera Aug 8, 2024
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
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:8d39c11f82de5ec4610f7637a2f9610bdf9d465b0a73bf45f1281cef7b69939f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/maintenance-17-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=17.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:%2017.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 <[email protected]>
- Luisa Miguéns <[email protected]>
- Christian Ramos <[email protected]>

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/17.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": "17.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="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>
155 changes: 155 additions & 0 deletions maintenance_timesheet/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# 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 <[email protected]>\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
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"

#~ 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