Skip to content

Commit

Permalink
Merge PR #346 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 Jul 5, 2023
2 parents 8a3d4a6 + 6180dc9 commit 2412975
Show file tree
Hide file tree
Showing 21 changed files with 1,026 additions and 0 deletions.
92 changes: 92 additions & 0 deletions maintenance_request_stage_transition/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
====================================
Maintenance Request Stage transition
====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/15.0/maintenance_request_stage_transition
:alt: OCA/maintenance
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_request_stage_transition
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/240/15.0
:alt: Try me on Runbot

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

It allows to define the next stages of a stage and shows them on the header buttons.

**Table of contents**

.. contents::
:local:

Usage
=====

* Access `Maintenance > Configuration > Maintenance Stages`
* Define the possible next stages of every stage
* You can specify the color of the button if needed
* Refresh the page in order to show the new possible stages
* The stage widget will be blocked and the expected button will appear on the header.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_stage_transition%0Aversion:%2015.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
~~~~~~~

* Creu Blanca

Contributors
~~~~~~~~~~~~

* Enric Tobella <[email protected]>
* Jaime Arroyo <[email protected]>
* David Alonso <[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.

.. |maintainer-etobella| image:: https://github.com/etobella.png?size=40px
:target: https://github.com/etobella
:alt: etobella

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-etobella|

This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/15.0/maintenance_request_stage_transition>`_ 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_request_stage_transition/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions maintenance_request_stage_transition/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Maintenance Request Stage transition",
"summary": """
Manage transition visibility and management between stages""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/maintenance",
"depends": ["maintenance"],
"data": ["views/maintenance_request.xml", "views/maintenance_stage.xml"],
"demo": ["data/demo_maintenance_request_stage_transition.xml"],
"maintainers": ["etobella"],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<odoo noupdate="1">
<record id="maintenance.stage_0" model="maintenance.stage">
<field name="button_class">info</field>
<field name="next_stage_ids" eval="[(4, ref('maintenance.stage_1'))]" />
</record>
<record id="maintenance.stage_1" model="maintenance.stage">
<field name="button_class">warning</field>
<field
name="next_stage_ids"
eval="[(4, ref('maintenance.stage_3')), (4, ref('maintenance.stage_4'))]"
/>
</record>
<record id="maintenance.stage_3" model="maintenance.stage">
<field name="button_class">success</field>
</record>
<record id="maintenance.stage_4" model="maintenance.stage">
<field name="button_class">danger</field>
</record>
</odoo>
83 changes: 83 additions & 0 deletions maintenance_request_stage_transition/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_request_stage_transition
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-07-14 15:48+0000\n"
"Last-Translator: Enric Tobella <[email protected]>\n"
"Language-Team: none\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.3.2\n"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__button_class
msgid "Button Class"
msgstr "Clase del Botón"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__danger
msgid "Danger"
msgstr "Peligro"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,help:maintenance_request_stage_transition.field_maintenance_stage__button_class
msgid "For default, the system uses primary"
msgstr "Por defecto, el sistema usa Primario"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__info
msgid "Info"
msgstr "Info"

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

#. module: maintenance_request_stage_transition
#: model:ir.model,name:maintenance_request_stage_transition.model_maintenance_stage
msgid "Maintenance Stage"
msgstr "Estado"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__next_stage_ids
msgid "Next stages"
msgstr "Próximos estados"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__previous_stage_ids
msgid "Previous stages"
msgstr "Estados previos"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__primary
msgid "Primary"
msgstr "Primario"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_request__stage_id
msgid "Stage"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__success
msgid "Success"
msgstr "Éxito"

#. module: maintenance_request_stage_transition
#: code:addons/maintenance_request_stage_transition/models/maintenance_stage.py:0
#, python-format
msgid "To %s"
msgstr "A %s"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__warning
msgid "Warning"
msgstr "Advertencia"
83 changes: 83 additions & 0 deletions maintenance_request_stage_transition/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_request_stage_transition
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-07-28 09:49+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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.3.2\n"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__button_class
msgid "Button Class"
msgstr "Classe pulsante"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__danger
msgid "Danger"
msgstr "Pericolo"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,help:maintenance_request_stage_transition.field_maintenance_stage__button_class
msgid "For default, the system uses primary"
msgstr "Il sistema usa come predefinito Primaria"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__info
msgid "Info"
msgstr "Informazioni"

#. module: maintenance_request_stage_transition
#: model:ir.model,name:maintenance_request_stage_transition.model_maintenance_request
msgid "Maintenance Request"
msgstr "Richiesta manutenzione"

#. module: maintenance_request_stage_transition
#: model:ir.model,name:maintenance_request_stage_transition.model_maintenance_stage
msgid "Maintenance Stage"
msgstr "Fase manutenzione"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__next_stage_ids
msgid "Next stages"
msgstr "Fase successiva"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__previous_stage_ids
msgid "Previous stages"
msgstr "Fase precedente"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__primary
msgid "Primary"
msgstr "Primaria"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_request__stage_id
msgid "Stage"
msgstr "Fase"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__success
msgid "Success"
msgstr "Successo"

#. module: maintenance_request_stage_transition
#: code:addons/maintenance_request_stage_transition/models/maintenance_stage.py:0
#, python-format
msgid "To %s"
msgstr "A %s"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__warning
msgid "Warning"
msgstr "Attenzione"
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_request_stage_transition
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__button_class
msgid "Button Class"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__danger
msgid "Danger"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,help:maintenance_request_stage_transition.field_maintenance_stage__button_class
msgid "For default, the system uses primary"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__info
msgid "Info"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model,name:maintenance_request_stage_transition.model_maintenance_request
msgid "Maintenance Request"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model,name:maintenance_request_stage_transition.model_maintenance_stage
msgid "Maintenance Stage"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__next_stage_ids
msgid "Next stages"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_stage__previous_stage_ids
msgid "Previous stages"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__primary
msgid "Primary"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields,field_description:maintenance_request_stage_transition.field_maintenance_request__stage_id
msgid "Stage"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__success
msgid "Success"
msgstr ""

#. module: maintenance_request_stage_transition
#: code:addons/maintenance_request_stage_transition/models/maintenance_stage.py:0
#, python-format
msgid "To %s"
msgstr ""

#. module: maintenance_request_stage_transition
#: model:ir.model.fields.selection,name:maintenance_request_stage_transition.selection__maintenance_stage__button_class__warning
msgid "Warning"
msgstr ""
2 changes: 2 additions & 0 deletions maintenance_request_stage_transition/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import maintenance_stage
from . import maintenance_request
Loading

0 comments on commit 2412975

Please sign in to comment.