Skip to content

Commit

Permalink
Merge PR #1247 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Nov 30, 2024
2 parents 189c439 + 76715d7 commit 6a47866
Show file tree
Hide file tree
Showing 27 changed files with 1,091 additions and 0 deletions.
114 changes: 114 additions & 0 deletions fieldservice_stage_server_action/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
===================================
Field Service - Stage Server Action
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ec4a7a5f4f4bbb8ef03a79a79ae12627b8b8d66cb0bdf908d71ae346a324e82d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Ffield--service-lightgray.png?logo=github
:target: https://github.com/OCA/field-service/tree/18.0/fieldservice_stage_server_action
:alt: OCA/field-service
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/field-service-18-0/field-service-18-0-fieldservice_stage_server_action
: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/field-service&target_branch=18.0
:alt: Try me on Runboat

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

This module allows you to execute server actions when a FSM orders
enters a specific stage.

**Table of contents**

.. contents::
:local:

Configuration
=============

- Go to Field Service > Configuration > Stages
- Create or select a stage
- Select or create a server action

Usage
=====

- Go to Field Service
- Select or create a FSM orders
- Move it to the stage configured before to trigger the execution of
the server action

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/field-service/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/field-service/issues/new?body=module:%20fieldservice_stage_server_action%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
-------

* Open Source Integrators

Contributors
------------

- Open Source Integrators <https://www.opensourceintegrators.com>

- Wolfgang Hall <[email protected]>
- Maxime Chambreuil <[email protected]>
- Steve Campbell <[email protected]>
- Mohammad Khalid <[email protected]>

- Brian McMaster <[email protected]>
- Italo Lopes <[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-wolfhall| image:: https://github.com/wolfhall.png?size=40px
:target: https://github.com/wolfhall
:alt: wolfhall
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903
.. |maintainer-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px
:target: https://github.com/osi-scampbell
:alt: osi-scampbell

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

|maintainer-wolfhall| |maintainer-max3903| |maintainer-osi-scampbell|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/18.0/fieldservice_stage_server_action>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions fieldservice_stage_server_action/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2019, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
21 changes: 21 additions & 0 deletions fieldservice_stage_server_action/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2019, Open Source Integrators
# # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Field Service - Stage Server Action",
"summary": "Execute server actions when reaching a Field Service stage",
"version": "18.0.1.1.0",
"category": "Field Service",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": ["fieldservice", "base_automation"],
"data": [
"data/ir_server_action.xml",
"data/fsm_stage.xml",
"data/base_automation.xml",
"views/fsm_stage.xml",
],
"installable": True,
"license": "AGPL-3",
"development_status": "Beta",
"maintainers": ["wolfhall", "max3903", "osi-scampbell"],
}
15 changes: 15 additions & 0 deletions fieldservice_stage_server_action/data/base_automation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<odoo>
<record id="fsm_order_email_sender" model="base.automation">
<field name="name">FSM Order Email Sender</field>
<field name="model_id" ref="fieldservice.model_fsm_order" />
<field name="trigger">on_create_or_write</field>
<field name="active" eval="True" />
<field
name="action_server_ids"
eval="[(6, 0, [
ref('fsm_order_parent_completed'),
ref('fsm_order_parent_canceled')])
]"
/>
</record>
</odoo>
8 changes: 8 additions & 0 deletions fieldservice_stage_server_action/data/fsm_stage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<odoo>
<record id="fieldservice.fsm_stage_completed" model="fsm.stage">
<field name="action_id" ref="fsm_order_parent_completed" />
</record>
<record id="fieldservice.fsm_stage_cancelled" model="fsm.stage">
<field name="action_id" ref="fsm_order_parent_canceled" />
</record>
</odoo>
12 changes: 12 additions & 0 deletions fieldservice_stage_server_action/data/ir_server_action.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<odoo>
<record id="fsm_order_parent_completed" model="ir.actions.server">
<field name="name">FSM Order Completed Parent</field>
<field name="model_id" ref="fieldservice.model_fsm_order" />
<field name="state">multi</field>
</record>
<record id="fsm_order_parent_canceled" model="ir.actions.server">
<field name="name">FSM Order Canceled Parent</field>
<field name="model_id" ref="fieldservice.model_fsm_order" />
<field name="state">multi</field>
</record>
</odoo>
50 changes: 50 additions & 0 deletions fieldservice_stage_server_action/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stage_server_action
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-12-03 15:45+0000\n"
"Last-Translator: Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT <nils."
"[email protected]>\n"
"Language-Team: none\n"
"Language: de\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.14.1\n"

#. module: fieldservice_stage_server_action
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_canceled
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_completed
msgid "Execute Existing Actions"
msgstr ""

#. module: fieldservice_stage_server_action
#: model:base.automation,name:fieldservice_stage_server_action.fsm_order_email_sender
msgid "FSM Order Email Sender"
msgstr "Absender der FSM Auftrags-Email"

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_order
msgid "Field Service Order"
msgstr ""

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_stage
msgid "Field Service Stage"
msgstr "Field Service Stufe"

#. module: fieldservice_stage_server_action
#: model:ir.model.fields,field_description:fieldservice_stage_server_action.field_fsm_stage__action_id
msgid "Server Action"
msgstr "Serveraktion"

#~ msgid "FSM Order Canceled Parent"
#~ msgstr "Übergeordnetes hat FSM-Auftrag storniert"

#~ msgid "FSM Order Completed Parent"
#~ msgstr "Übergeordnetes schliesst FSM-Auftrag ab"
49 changes: 49 additions & 0 deletions fieldservice_stage_server_action/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stage_server_action
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-02 20:22+0000\n"
"Last-Translator: Leonardo J. Caballero G. <[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.14.1\n"

#. module: fieldservice_stage_server_action
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_canceled
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_completed
msgid "Execute Existing Actions"
msgstr ""

#. module: fieldservice_stage_server_action
#: model:base.automation,name:fieldservice_stage_server_action.fsm_order_email_sender
msgid "FSM Order Email Sender"
msgstr "Remitente de Correo de Pedido FSM"

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_order
msgid "Field Service Order"
msgstr ""

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_stage
msgid "Field Service Stage"
msgstr "Etapa de Servicio de Campo"

#. module: fieldservice_stage_server_action
#: model:ir.model.fields,field_description:fieldservice_stage_server_action.field_fsm_stage__action_id
msgid "Server Action"
msgstr "Acción de Servidor"

#~ msgid "FSM Order Canceled Parent"
#~ msgstr "Pedido FSM cancelado padre"

#~ msgid "FSM Order Completed Parent"
#~ msgstr "Pedido FSM Padre Completado"
58 changes: 58 additions & 0 deletions fieldservice_stage_server_action/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stage_server_action
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-10-05 18:06+0000\n"
"Last-Translator: Ignacio Buioli <[email protected]>\n"
"Language-Team: none\n"
"Language: es_AR\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 5.6.2\n"

#. module: fieldservice_stage_server_action
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_canceled
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_completed
msgid "Execute Existing Actions"
msgstr "Ejecutar Acciones Existentes"

#. module: fieldservice_stage_server_action
#: model:base.automation,name:fieldservice_stage_server_action.fsm_order_email_sender
msgid "FSM Order Email Sender"
msgstr "Correo Electrónico del Remitente del Pedido FSM"

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_order
msgid "Field Service Order"
msgstr "Pedido de Servicio de Campo"

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_stage
msgid "Field Service Stage"
msgstr "Etapa de Servicio de Campo"

#. module: fieldservice_stage_server_action
#: model:ir.model.fields,field_description:fieldservice_stage_server_action.field_fsm_stage__action_id
msgid "Server Action"
msgstr "Acción del Servidor"

#~ msgid "FSM Order Canceled Parent"
#~ msgstr "Padre del Pedido FSM Cancelado"

#~ msgid "FSM Order Completed Parent"
#~ msgstr "Padre del Pedido FSM Completado"

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

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

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"
49 changes: 49 additions & 0 deletions fieldservice_stage_server_action/i18n/es_CL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stage_server_action
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-02 20:22+0000\n"
"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n"
"Language-Team: none\n"
"Language: es_CL\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.14.1\n"

#. module: fieldservice_stage_server_action
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_canceled
#: model:ir.actions.server,name:fieldservice_stage_server_action.fsm_order_parent_completed
msgid "Execute Existing Actions"
msgstr ""

#. module: fieldservice_stage_server_action
#: model:base.automation,name:fieldservice_stage_server_action.fsm_order_email_sender
msgid "FSM Order Email Sender"
msgstr "Remitente de Correo de Pedido FSM"

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_order
msgid "Field Service Order"
msgstr ""

#. module: fieldservice_stage_server_action
#: model:ir.model,name:fieldservice_stage_server_action.model_fsm_stage
msgid "Field Service Stage"
msgstr "Etapa de Servicio de Campo"

#. module: fieldservice_stage_server_action
#: model:ir.model.fields,field_description:fieldservice_stage_server_action.field_fsm_stage__action_id
msgid "Server Action"
msgstr "Acción de Servidor"

#~ msgid "FSM Order Canceled Parent"
#~ msgstr "Pedido FSM cancelado padre"

#~ msgid "FSM Order Completed Parent"
#~ msgstr "Pedido FSM Padre Completado"
Loading

0 comments on commit 6a47866

Please sign in to comment.