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_project #401

Merged
merged 28 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a60552f
[ADD] maintenance_project
dalonsod Sep 17, 2019
73cf86d
[IMP] maintenance_project: black, isort
dalonsod Feb 16, 2020
2f6754a
[MIG] maintenance_project: Migration to 13.0
dalonsod Feb 16, 2020
77845c2
pre-commit update
OCA-git-bot Mar 14, 2020
f63d995
[IMP] maintenance_project: black, isort, prettier
dalonsod Nov 30, 2020
e665f9d
[MIG] maintenance_project: Migration to 14.0
dalonsod Nov 30, 2020
fb7de88
[UPD] Update maintenance_project.pot
oca-travis Dec 3, 2020
cab2972
[IMP] maintenance_project: add report support for requests
dalonsod Dec 16, 2020
23256ef
[UPD] Update maintenance_project.pot
oca-travis Dec 17, 2020
4bfec61
maintenance_project 14.0.1.1.0
OCA-git-bot Dec 17, 2020
2ba7aba
Update translation files
oca-transbot Dec 17, 2020
4baaa7c
Added translation using Weblate (Italian)
mymage Jul 28, 2021
4b5d4e9
Translated using Weblate (Italian)
mymage Jul 28, 2021
5fef518
[IMP] maintenance_project: black, isort, prettier
mymage Nov 24, 2022
18ffb6c
[MIG] maintenance_project: Migration to 15.0
mymage Nov 24, 2022
5ed22fb
[UPD] Update maintenance_project.pot
Jan 9, 2023
c287f39
[UPD] README.rst
OCA-git-bot Jan 9, 2023
8b6830c
Translated using Weblate (Spanish)
victoralmau Feb 20, 2023
49c90d1
[MIG] maintenance_project: Migration to 16.0
dalonsod Jun 5, 2023
2efb72b
[UPD] Update maintenance_project.pot
Jun 8, 2023
4593525
[UPD] README.rst
OCA-git-bot Jun 8, 2023
b2e68ee
Update translation files
weblate Jun 8, 2023
78f3b7e
Translated using Weblate (Italian)
mymage Jun 12, 2023
cb6fddc
Translated using Weblate (Spanish)
Ivorra78 Jul 22, 2023
8dcc13a
[UPD] README.rst
OCA-git-bot Sep 3, 2023
67012fd
Translated using Weblate (Italian)
mymage Nov 12, 2023
2015de5
[IMP] maintenance_project:pre-commit auto fixes
Anxo82 Jun 12, 2024
533ba1b
[MIG] maintenance_project: Migration to 17.0
Anxo82 Jun 12, 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
86 changes: 86 additions & 0 deletions maintenance_project/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
====================
Maintenance Projects
====================

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

.. |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_project
: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_project
: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 extends the functionality of Odoo Maintenance module adding
this features:

- Adds a project to an equipment. The project can be automatically
created from the equipment definition.
- Adds project and task to a maintenance request. The default project
for a request will be the equipment one, including the preventive
requests periodically created.

This is is a technical addon to allow timesheet assignment to a
maintenance 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_project%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 <david.alonso@solvos.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/17.0/maintenance_project>`_ 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_project/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions maintenance_project/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2019 Solvos Consultoría Informática (<http://www.solvos.es>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Maintenance Projects",
"summary": "Adds projects to maintenance equipments and requests",
"version": "17.0.1.0.0",
"author": "Odoo Community Association (OCA), Solvos",
"license": "AGPL-3",
"category": "Maintenance",
"website": "https://github.com/OCA/maintenance",
"depends": ["base_maintenance", "project"],
"data": [
"security/maintenance_project_security.xml",
"views/maintenance_equipment_views.xml",
"views/maintenance_request_views.xml",
"views/project_project_views.xml",
"report/maintenance_request_report.xml",
],
"demo": ["demo/demo_maintenance_project.xml"],
"installable": True,
}
56 changes: 56 additions & 0 deletions maintenance_project/demo/demo_maintenance_project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<odoo noupdate="1">
<record id="project_project_1" model="project.project">
<field name="name">General equipment project</field>
<field name="user_id" ref="base.user_admin" />
</record>
<record id="project_task_11" model="project.task">
<field name="user_ids" eval="[(4, ref('base.user_admin'))]" />
<field name="project_id" ref="maintenance_project.project_project_1" />
<field name="name">General task</field>
</record>
<record id="project_task_12" model="project.task">
<field name="user_ids" eval="[(4, ref('base.user_admin'))]" />
<field name="project_id" ref="maintenance_project.project_project_1" />
<field name="name">Default preventive task</field>
</record>
<record id="equipment_1" model="maintenance.equipment">
<field name="name">Generic Monitor</field>
<field name="category_id" ref="maintenance.equipment_monitor" />
<field name="owner_user_id" ref="base.user_admin" />
<field name="technician_user_id" ref="base.user_admin" />
<field name="assign_date" eval="time.strftime('%Y-%m-10')" />
<field name="serial_no">S/N 1</field>
<field name="model">MODEL1</field>
<field name="create_project_from_equipment" eval="False" />
<field name="project_id" ref="maintenance_project.project_project_1" />
</record>
<record id="equipment_2" model="maintenance.equipment">
<field name="name">Generic Monitor with preventive</field>
<field name="category_id" ref="maintenance.equipment_monitor" />
<field name="owner_user_id" ref="base.user_admin" />
<field name="technician_user_id" ref="base.user_admin" />
<field
name="maintenance_team_id"
ref="maintenance.equipment_team_maintenance"
/>
<field name="assign_date" eval="time.strftime('%Y-%m-10')" />
<field name="serial_no">S/N 2</field>
<field name="model">MODEL2</field>
<field name="create_project_from_equipment" eval="False" />
<field name="project_id" ref="maintenance_project.project_project_1" />
<field
name="preventive_default_task_id"
ref="maintenance_project.project_task_12"
/>
</record>
<record id="equipment_3" model="maintenance.equipment">
<field name="name">Generic Computer with own project</field>
<field name="category_id" ref="maintenance.equipment_computer" />
<field name="owner_user_id" ref="base.user_admin" />
<field name="technician_user_id" ref="base.user_admin" />
<field name="assign_date" eval="time.strftime('%Y-%m-10')" />
<field name="serial_no">S/N 3</field>
<field name="model">MODEL3</field>
<field name="create_project_from_equipment" eval="True" />
</record>
</odoo>
136 changes: 136 additions & 0 deletions maintenance_project/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_project
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-18 17:04+0000\n"
"PO-Revision-Date: 2023-07-22 23:09+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_project
#: model_terms:ir.ui.view,arch_db:maintenance_project.view_project_kanban
msgid "<span class=\"o_label\">Equipments</span>"
msgstr "<span class=\"o_label\">Equipos</span>"

#. module: maintenance_project
#: model_terms:ir.ui.view,arch_db:maintenance_project.view_project_kanban
msgid "<span class=\"o_label\">Requests</span>"
msgstr "<span class=\"o_label\">Peticiones</span>"

#. module: maintenance_project
#: model_terms:ir.ui.view,arch_db:maintenance_project.report_maintenance_request_document
msgid "<strong>Project:</strong>"
msgstr "<strong>Proyecto:</strong>"

#. module: maintenance_project
#: model_terms:ir.ui.view,arch_db:maintenance_project.report_maintenance_request_document
msgid "<strong>Task:</strong>"
msgstr "<strong>Tarea:</strong>"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_maintenance_equipment__create_project_from_equipment
msgid "Create Project From Equipment"
msgstr "Crear proyecto a partir del equipo"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_maintenance_equipment__preventive_default_task_id
msgid "Default Task"
msgstr "Tarea por defecto"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_project_project__equipment_count
msgid "Equipment Count"
msgstr "N??mero de equipos"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_project_project__equipment_ids
#: model_terms:ir.ui.view,arch_db:maintenance_project.edit_project
msgid "Equipments"
msgstr "Equipos"

#. module: maintenance_project
#: model:project.project,name:maintenance_project.project_project_1
msgid "General equipment project"
msgstr "Proyecto de equipamiento general"

#. module: maintenance_project
#: model:maintenance.equipment,name:maintenance_project.equipment_3
msgid "Generic Computer with own project"
msgstr "Ordenador gen??rico con su propio proyecto"

#. module: maintenance_project
#: model:maintenance.equipment,name:maintenance_project.equipment_1
msgid "Generic Monitor"
msgstr "Monitor gen??rico"

#. module: maintenance_project
#: model:maintenance.equipment,name:maintenance_project.equipment_2
msgid "Generic Monitor with preventive"
msgstr "Monitor gen??rico con preventivo"

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

#. module: maintenance_project
#: model:ir.model,name:maintenance_project.model_maintenance_request
msgid "Maintenance Request"
msgstr "Petici??n de mantenimiento"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_project_project__maintenance_request_count
msgid "Maintenance Request Count"
msgstr "N??mero de peticiones de mantenimiento"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_project_project__maintenance_request_ids
msgid "Maintenance Requests"
msgstr "Peticiones de mantenimiento"

#. module: maintenance_project
#: model:ir.model,name:maintenance_project.model_project_project
#: model:ir.model.fields,field_description:maintenance_project.field_maintenance_equipment__project_id
#: model:ir.model.fields,field_description:maintenance_project.field_maintenance_request__project_id
msgid "Project"
msgstr "Proyecto"

#. module: maintenance_project
#: model_terms:ir.ui.view,arch_db:maintenance_project.hr_equipment_request_view_kanban
#: model_terms:ir.ui.view,arch_db:maintenance_project.hr_equipment_view_kanban
msgid "Project:"
msgstr "Proyecto:"

#. module: maintenance_project
#: model_terms:ir.ui.view,arch_db:maintenance_project.edit_project
msgid "Requests"
msgstr "Peticiones"

#. module: maintenance_project
#: model:ir.model.fields,field_description:maintenance_project.field_maintenance_request__task_id
msgid "Task"
msgstr "Tarea"

#. module: maintenance_project
#: model:project.project,label_tasks:maintenance_project.project_project_1
msgid "Tasks"
msgstr "Tareas"

#~ msgid "Display Name"
#~ msgstr "Nombre a mostrar"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación en"
Loading
Loading