Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c64fd86
[11.0][ADD] maintenance_request_stage_transition
etobella Dec 4, 2019
c83ead3
[12.0][MIG] maintenance_request_stage_transition
Jan 8, 2020
b6f5277
[IMP] maintenance_request_stage_transition: black, isort, prettier
dalonsod Apr 5, 2020
6860ab7
[MIG] maintenance_request_stage_transition: Migration to 13.0
dalonsod Apr 5, 2020
38d6eb3
Translated using Weblate (Spanish)
etobella Jul 14, 2021
c92118e
Added translation using Weblate (Italian)
mymage Jul 28, 2021
406c1b2
Translated using Weblate (Italian)
mymage Jul 28, 2021
f668d4f
[IMP] maintenance_request_stage_transition: black, isort, prettier
mariadforgeflow Aug 19, 2021
a240439
[MIG] maintenance_request_stage_transition: Migration to 14.0
mariadforgeflow Aug 19, 2021
96ba608
[MIG] maintenance_request_stage_transition: Migration to 15.0
olgamarcocb May 20, 2022
e177c8e
[UPD] Update maintenance_request_stage_transition.pot
Jul 12, 2022
6297d45
[UPD] README.rst
OCA-git-bot Jul 12, 2022
50a2fe5
[MIG] maintenance_request_stage_transition: Migration to 16.0
kaynnan Jul 3, 2023
259a306
[UPD] Update maintenance_request_stage_transition.pot
Jul 5, 2023
b211c7e
[UPD] README.rst
OCA-git-bot Jul 5, 2023
be22b58
Update translation files
weblate Jul 5, 2023
ca4fc5f
Translated using Weblate (Spanish)
Ivorra78 Jul 22, 2023
bccb52c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
256e4a1
[IMP] maintenance_request_stage_transition: pre-commit auto fixes
deeniiz Jul 8, 2026
2db6aab
[MIG] maintenance_request_stage_transition: Migration to 18.0
deeniiz Jul 9, 2026
ee4573d
[FIX] maintenance_plan_activity: filter test activities by res_model
deeniiz Jul 9, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def test_01_cron_auto_create_activities(self):
request_1 = generated_requests[0]
# Check if activity Call has been created for the request 1
generated_activities = self.mail_activity_obj.search(
[("res_id", "=", request_1.id)]
[
("res_model", "=", "maintenance.request"),
("res_id", "=", request_1.id),
]
)
self.assertEqual(len(generated_activities), 2)
self.assertEqual(generated_activities[0].activity_type_id.name, self.call.name)
Expand Down
100 changes: 100 additions & 0 deletions maintenance_request_stage_transition/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
====================================
Maintenance Request Stage transition
====================================

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

.. |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/18.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-18-0/maintenance-18-0-maintenance_request_stage_transition
: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=18.0
:alt: Try me on Runboat

|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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_request_stage_transition%0Aversion:%2018.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 <etobella@creublanca.es>
- Jaime Arroyo <jaime.arroyo@creublanca.es>
- David Alonso <david.alonso@solvos.es>
- `NuoBiT <https://www.nuobit.com>`__:

- Deniz Gallo dgallo@nuobit.com

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/18.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
17 changes: 17 additions & 0 deletions maintenance_request_stage_transition/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2019 Creu Blanca
# Copyright 2026 NuoBiT Solutions - Deniz Gallo <dgallo@nuobit.com>
# 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": "18.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>
84 changes: 84 additions & 0 deletions maintenance_request_stage_transition/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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: 2023-07-22 23:09+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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.17\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 "Etapa/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 "Éxito"

#. module: maintenance_request_stage_transition
#. odoo-python
#: 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"
84 changes: 84 additions & 0 deletions maintenance_request_stage_transition/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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 <stefano.consolaro@mymage.it>\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
#. odoo-python
#: 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"
Loading
Loading