Skip to content

Commit

Permalink
Merge PR #401 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Aug 20, 2024
2 parents ae9cf00 + 533ba1b commit 291a56e
Show file tree
Hide file tree
Showing 23 changed files with 1,436 additions and 0 deletions.
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

0 comments on commit 291a56e

Please sign in to comment.