Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
99 changes: 99 additions & 0 deletions fieldservice_operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
==================================
Field Service with Operating Units
==================================

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

.. |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%2Foperating--unit-lightgray.png?logo=github
:target: https://github.com/OCA/operating-unit/tree/15.0/fieldservice_operating_unit
:alt: OCA/operating-unit
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-fieldservice_operating_unit
: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/operating-unit&target_branch=15.0
:alt: Try me on Runboat

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

This module adds operating unit information to Field Service orders.

**Table of contents**

.. contents::
:local:

Usage
=====

* Go to Field Service
* You only see the FSM orders of your operating units
* Create an order. It is assigned to your default operating unit.

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

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

* Open Source Integrators
* Serpent Consulting Services Pvt. Ltd.

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

* Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>

Other credits
~~~~~~~~~~~~~

* Open Source Integrators
* Serpent Consulting Services Pvt. Ltd.

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-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903

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

|maintainer-max3903|

This module is part of the `OCA/operating-unit <https://github.com/OCA/operating-unit/tree/15.0/fieldservice_operating_unit>`_ 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_operating_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2021 Open Source Integrators
# Copyright (C) 2021 Serpent Consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
25 changes: 25 additions & 0 deletions fieldservice_operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (C) 2021 Open Source Integrators
# Copyright (C) 2021 Serpent Consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Field Service with Operating Units",
"summary": """
This module adds operating unit information to Field Service orders.""",
"version": "15.0.1.0.0",
"author": "Open Source Integrators, "
"Serpent Consulting Services Pvt. Ltd.,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/operating-unit",
"category": "Field Service",
"depends": ["operating_unit", "fieldservice"],
"license": "AGPL-3",
"data": [
"security/fieldservice_security.xml",
"views/fsm_order.xml",
],
"installable": True,
"development_status": "Beta",
"maintainers": [
"max3903",
],
}
39 changes: 39 additions & 0 deletions fieldservice_operating_unit/i18n/fieldservice_operating_unit.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: fieldservice_operating_unit
#: model:ir.model,name:fieldservice_operating_unit.model_fsm_order
msgid "Field Service Order"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__id
msgid "ID"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order____last_update
msgid "Last Modified on"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__operating_unit_id
msgid "Operating Unit"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__display_name
msgid "Order"
msgstr ""
43 changes: 43 additions & 0 deletions fieldservice_operating_unit/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-06-28 11:05+0000\n"
"Last-Translator: Khalid Hazam <k.hazam@badep.ma>\n"
"Language-Team: none\n"
"Language: fr\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: fieldservice_operating_unit
#: model:ir.model,name:fieldservice_operating_unit.model_fsm_order
#, fuzzy
msgid "Field Service Order"
msgstr "Ordre de mission"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__id
msgid "ID"
msgstr "ID"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__operating_unit_id
msgid "Operating Unit"
msgstr "Unité opérationnelle"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__display_name
msgid "Order"
msgstr "Ordre"
42 changes: 42 additions & 0 deletions fieldservice_operating_unit/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-07-23 17:25+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 5.10.4\n"

#. module: fieldservice_operating_unit
#: model:ir.model,name:fieldservice_operating_unit.model_fsm_order
msgid "Field Service Order"
msgstr "Ordine assistenza sul campo"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__id
msgid "ID"
msgstr "ID"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__operating_unit_id
msgid "Operating Unit"
msgstr "Unità operativa"

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__display_name
msgid "Order"
msgstr "Ordine"
40 changes: 40 additions & 0 deletions fieldservice_operating_unit/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: pt\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"

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

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__id
msgid "ID"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order____last_update
msgid "Last Modified on"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__operating_unit_id
msgid "Operating Unit"
msgstr ""

#. module: fieldservice_operating_unit
#: model:ir.model.fields,field_description:fieldservice_operating_unit.field_fsm_order__display_name
msgid "Order"
msgstr ""
2 changes: 2 additions & 0 deletions fieldservice_operating_unit/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import fsm_order
14 changes: 14 additions & 0 deletions fieldservice_operating_unit/models/fsm_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2021 Open Source Integrators
# Copyright (C) 2021 Serpent Consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models


class FSMOrder(models.Model):
_inherit = "fsm.order"

operating_unit_id = fields.Many2one(
comodel_name="operating.unit",
string="Operating Unit",
default=lambda self: self.env.user.default_operating_unit_id,
)
2 changes: 2 additions & 0 deletions fieldservice_operating_unit/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
2 changes: 2 additions & 0 deletions fieldservice_operating_unit/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Open Source Integrators
* Serpent Consulting Services Pvt. Ltd.
1 change: 1 addition & 0 deletions fieldservice_operating_unit/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds operating unit information to Field Service orders.
3 changes: 3 additions & 0 deletions fieldservice_operating_unit/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Go to Field Service
* You only see the FSM orders of your operating units
* Create an order. It is assigned to your default operating unit.
21 changes: 21 additions & 0 deletions fieldservice_operating_unit/security/fieldservice_security.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<odoo>

<!-- Copyright (C) 2021 Open Source Integrators
Copyright (C) 2021 Serpent Consulting Services
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->

<record id="ir_rule_fieldservice_operating_unit" model="ir.rule">
<field name="model_id" ref="fieldservice.model_fsm_order" />
<field
name="domain_force"
>['|', ('operating_unit_id','=',False), ('operating_unit_id','in',user.operating_unit_ids.ids)]
</field>
<field name="name">Field Service Operating Unit</field>
<field name="global" eval="True" />
<field eval="0" name="perm_unlink" />
<field eval="0" name="perm_write" />
<field eval="1" name="perm_read" />
<field eval="0" name="perm_create" />
</record>

</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading