forked from OCA/field-service
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Templates [WIP] Testing [IMP] FSM Emails [ADD] FSM Stage Server Action [IMP] ir.server.action in pavlov_media [IMP] Remove dependency conflict [IMP] Cite OCA manifest [IMP] Remove Dependency [IMP] Auto Config for User [IMP] Small changes [FIX] fieldservice (PM OCA#515 and OCA#577) (OCA#230) [IMP] fieldservice: Add notes on location (PM OCA#596) (OCA#231) [FIX] fieldservice_agreement (OCA#232) [ADD] fieldservice_stage_server_action
- Loading branch information
1 parent
96190ce
commit 381e46e
Showing
11 changed files
with
729 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
=================================== | ||
Field Service - Stage Server Action | ||
=================================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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%2Ffield--service-lightgray.png?logo=github | ||
:target: https://github.com/OCA/field-service/tree/12.0/fieldservice_skill | ||
: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-12-0/field-service-12-0-fieldservice_skill | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/264/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
|
||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
To install Field Service and have the mapping features, you need to install GeoEngine. | ||
|
||
Please refer to the installation instructions available at: | ||
https://github.com/OCA/geospatial/tree/12.0/base_geoengine | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module, you need to: | ||
|
||
|
||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
The roadmap of the Field Service application is documented on | ||
`Github <https://github.com/OCA/field-service/issues/1>`_. | ||
|
||
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 smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_skill%0Aversion:%2012.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 | ||
~~~~~~~~~~~~ | ||
|
||
* Wolfgang Hall <whall@opensourceintegrators.com> | ||
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com> | ||
* Steve Campbell <scampbell@opensourceintegrators.com> | ||
|
||
Other credits | ||
~~~~~~~~~~~~~ | ||
|
||
The development of this module has been financially supported by: | ||
|
||
* Open Source Integrators <https://opensourceintegrators.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-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px | ||
:target: https://github.com/osi-scampbell | ||
:alt: osi-scampbell | ||
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px | ||
:target: https://github.com/max3903 | ||
:alt: max3903 | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-osi-scampbell| |maintainer-max3903| | ||
|
||
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/12.0/fieldservice_skill>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (C) 2019 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright (C) 2019 - TODAY, Open Source Integrators | ||
# # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
{ | ||
'name': 'FSM Stage Server Action', | ||
'summary': 'Add Server Actions based on FSM Stage', | ||
'version': '12.0.1.0.0', | ||
'category': 'Field Service', | ||
'author': 'Open Source Integrators, Odoo Community Association (OCA)', | ||
'website': 'https://github.com/ursais/osi-addons', | ||
'depends': [ | ||
'fieldservice', | ||
'fieldservice_substatus', | ||
'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' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<odoo> | ||
<data noupdate="1"> | ||
<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="state">multi</field> | ||
<field name="child_ids" eval= | ||
"[(6, 0, [ | ||
ref('fsm_order_parent_confirmed'), | ||
ref('fsm_order_parent_requested'), | ||
ref('fsm_order_parent_assigned'), | ||
ref('fsm_order_parent_scheduled'), | ||
ref('fsm_order_parent_completed'), | ||
ref('fsm_order_parent_canceled')]) | ||
]"/> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="fieldservice.fsm_stage_confirmed" model="fsm.stage"> | ||
<field name="action_id" ref="fsm_order_parent_confirmed"/> | ||
</record> | ||
|
||
<record id="fieldservice.fsm_stage_requested" model="fsm.stage"> | ||
<field name="action_id" ref="fsm_order_parent_requested"/> | ||
</record> | ||
|
||
<record id="fieldservice.fsm_stage_assigned" model="fsm.stage"> | ||
<field name="action_id" ref="fsm_order_parent_assigned"/> | ||
</record> | ||
|
||
<record id="fieldservice.fsm_stage_scheduled" model="fsm.stage"> | ||
<field name="action_id" ref="fsm_order_parent_scheduled"/> | ||
</record> | ||
|
||
<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> | ||
</data> | ||
</odoo> |
39 changes: 39 additions & 0 deletions
39
fieldservice_stage_server_action/data/ir_server_action.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="fsm_order_parent_confirmed" model="ir.actions.server"> | ||
<field name="name">FSM Order Confirmed Parent</field> | ||
<field name="model_id" ref="fieldservice.model_fsm_order"/> | ||
<field name="state">multi</field> | ||
</record> | ||
|
||
<record id="fsm_order_parent_requested" model="ir.actions.server"> | ||
<field name="name">FSM Order Requested Parent</field> | ||
<field name="model_id" ref="fieldservice.model_fsm_order"/> | ||
<field name="state">multi</field> | ||
</record> | ||
|
||
<record id="fsm_order_parent_assigned" model="ir.actions.server"> | ||
<field name="name">FSM Order Assigned Parent</field> | ||
<field name="model_id" ref="fieldservice.model_fsm_order"/> | ||
<field name="state">multi</field> | ||
</record> | ||
|
||
<record id="fsm_order_parent_scheduled" model="ir.actions.server"> | ||
<field name="name">FSM Order Scheduled Parent</field> | ||
<field name="model_id" ref="fieldservice.model_fsm_order"/> | ||
<field name="state">multi</field> | ||
</record> | ||
|
||
<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> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) 2019 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import ( | ||
fsm_stage, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2019 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class FSMStage(models.Model): | ||
_inherit = 'fsm.stage' | ||
|
||
action_id = fields.Many2one('ir.actions.server', string="Server Action") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.