diff --git a/fieldservice_agreement/README.rst b/fieldservice_agreement/README.rst new file mode 100644 index 0000000000..969464eaca --- /dev/null +++ b/fieldservice_agreement/README.rst @@ -0,0 +1,135 @@ +========================== +Field Service - Agreements +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:816250d8ffb8cfea7c4b4b6dba339375ea9264b6ff922a6c0d346939ffe04116 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/17.0/fieldservice_agreement + :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-17-0/field-service-17-0-fieldservice_agreement + :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=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Odoo Agreement App does not provide an easy way to access field service +orders related to an agreement. Some organizations needs to have a quick +access to field service orders to track the performance of an agreement. + +This module allows you to link a field service order to an agreement and +adds a smart button on the agreement to look at the list of related +field service orders. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + + + +Usage +===== + +To use this module: + +- Go to Field Service > Operations > Orders +- Select or create a field service order and set the agreement +- Go to Agreement > Agreements +- Open the previous agreement +- Click on the smart button "Service Orders" to see the list of related + field service orders + +Known issues / Roadmap +====================== + + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Open Source Integrators + +Contributors +------------ + +- Bhavesh Odedra +- Sandip Mangukiya +- Serpent Consulting Services Pvt. Ltd. +- Patrick Wilson +- Italo LOPES + +Other credits +------------- + +The development of this module has been financially supported by: + +- Open Source Integrators + +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 +.. |maintainer-bodedra| image:: https://github.com/bodedra.png?size=40px + :target: https://github.com/bodedra + :alt: bodedra +.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px + :target: https://github.com/smangukiya + :alt: smangukiya +.. |maintainer-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px + :target: https://github.com/osi-scampbell + :alt: osi-scampbell +.. |maintainer-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px + :target: https://github.com/patrickrwilson + :alt: patrickrwilson + +Current `maintainers `__: + +|maintainer-max3903| |maintainer-bodedra| |maintainer-smangukiya| |maintainer-osi-scampbell| |maintainer-patrickrwilson| + +This module is part of the `OCA/field-service `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/fieldservice_agreement/__init__.py b/fieldservice_agreement/__init__.py new file mode 100644 index 0000000000..631bd4893a --- /dev/null +++ b/fieldservice_agreement/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/fieldservice_agreement/__manifest__.py b/fieldservice_agreement/__manifest__.py new file mode 100644 index 0000000000..b2d1b0bfe9 --- /dev/null +++ b/fieldservice_agreement/__manifest__.py @@ -0,0 +1,28 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Field Service - Agreements", + "summary": "Manage Field Service agreements and contracts", + "author": "Open Source Integrators, " "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/field-service", + "category": "Field Service", + "license": "AGPL-3", + "version": "17.0.1.0.0", + "depends": ["fieldservice", "agreement"], + "data": [ + "views/fsm_order_view.xml", + "views/fsm_equipment_view.xml", + "views/agreement_view.xml", + "views/fsm_person.xml", + ], + "installable": True, + "development_status": "Beta", + "maintainers": [ + "max3903", + "bodedra", + "smangukiya", + "osi-scampbell", + "patrickrwilson", + ], +} diff --git a/fieldservice_agreement/i18n/de.po b/fieldservice_agreement/i18n/de.po new file mode 100644 index 0000000000..2fc6b0475f --- /dev/null +++ b/fieldservice_agreement/i18n/de.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-11-26 17:58+0000\n" +"Last-Translator: Maria Sparenberg \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 3.8\n" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "# Equipment" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "# Service-Aufträge" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "# Vereinbarungen" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "Equipment" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "Vereinbarung" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "Vereinbarungen" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "Field-Service-Ort" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "Field-Service" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "Service-Equipment" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "Field-Service-Ort" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "Field-Service-Auftrag" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "Service-Mitarbeiter" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "Service-Aufträge" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "Service-Profil" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "Service-Profile" diff --git a/fieldservice_agreement/i18n/es.po b/fieldservice_agreement/i18n/es.po new file mode 100644 index 0000000000..b222abd215 --- /dev/null +++ b/fieldservice_agreement/i18n/es.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-03-25 17:13+0000\n" +"Last-Translator: Nelson Ramírez Sánchez \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 3.10\n" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "# de Equipos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "# Ordenes de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "# de Acuerdos" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "Equipos" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "Acuerdo" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "Acuerdos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "Ubicación SC" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "Equipo de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "Ubicación de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "Pedido de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "Trabajador de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "Ordenes de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "Perfil de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "Perfiles de Servicio" diff --git a/fieldservice_agreement/i18n/es_AR.po b/fieldservice_agreement/i18n/es_AR.po new file mode 100644 index 0000000000..c1cb803a0a --- /dev/null +++ b/fieldservice_agreement/i18n/es_AR.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-10-29 04:36+0000\n" +"Last-Translator: Ignacio Buioli \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 4.17\n" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "# Equipos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "# Pedidos de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "# de Acuerdos" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "Equipos" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "Acuerdo" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "Acuerdos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "Ubicación del FSM" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "Equipo del Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "Ubicación del Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "Pedido de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "Trabajador de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "ID" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "Pedido" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "Pedidos de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "Perfil del Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "Perfiles de Servicio" diff --git a/fieldservice_agreement/i18n/es_CL.po b/fieldservice_agreement/i18n/es_CL.po new file mode 100644 index 0000000000..304ad9fb88 --- /dev/null +++ b/fieldservice_agreement/i18n/es_CL.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-11-21 20:35+0000\n" +"Last-Translator: Nelson Ramírez Sánchez \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 3.8\n" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "# de Equipos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "# Ordenes de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "# de Acuerdos" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "Equipos" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "Acuerdo" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "Acuerdos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "Ubicación FSM" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "Equipo de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "Ubicación de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "Orden de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "Trabajador de Servicio de Campo" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "Ordenes de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "Perfil de Servicio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "Perfiles de Servicio" diff --git a/fieldservice_agreement/i18n/fieldservice_agreement.pot b/fieldservice_agreement/i18n/fieldservice_agreement.pot new file mode 100644 index 0000000000..157d6ad890 --- /dev/null +++ b/fieldservice_agreement/i18n/fieldservice_agreement.pot @@ -0,0 +1,127 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +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_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "" diff --git a/fieldservice_agreement/i18n/it.po b/fieldservice_agreement/i18n/it.po new file mode 100644 index 0000000000..cf5f97e8c2 --- /dev/null +++ b/fieldservice_agreement/i18n/it.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-10-27 08:43+0000\n" +"Last-Translator: mymage \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.14.1\n" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "N° attrezzature" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "N° ordini di servizio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "N° di accordi" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "Attrezzature" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "Accordo" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "Accordi" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "Località FSM" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "Assistenza sul campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "Attrezzatura assistenza sul campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "Località assistenza sul campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "Ordine assistenza sul campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "Lavoratore assistenza sul campo" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "ID" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "Ordine" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "Ordini di servizio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "Profilo servizio" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "Profili servizio" diff --git a/fieldservice_agreement/i18n/pt_BR.po b/fieldservice_agreement/i18n/pt_BR.po new file mode 100644 index 0000000000..cf317544db --- /dev/null +++ b/fieldservice_agreement/i18n/pt_BR.po @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-06-17 22:19+0000\n" +"Last-Translator: Fernando Colus \n" +"Language-Team: none\n" +"Language: pt_BR\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 3.10\n" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__equipment_count +msgid "# Equipments" +msgstr "# Equipamentos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__service_order_count +msgid "# Service Orders" +msgstr "# Ordens de Serviço" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__agreement_count +msgid "# of Agreements" +msgstr "# de Contratos" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Equipments" +msgstr "Equipamentos" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__agreement_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__agreement_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_form_view_agreement +msgid "Agreement" +msgstr "Acordo" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_person_form +msgid "Agreements" +msgstr "Acordos" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__display_name +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__display_name +msgid "Display Name" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__fsm_location_id +msgid "FSM Location" +msgstr "Localização do FSM" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Field Service" +msgstr "Serviço de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_equipment +msgid "Field Service Equipment" +msgstr "Equipamento Usados em Serviços de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_location +msgid "Field Service Location" +msgstr "Localização do Serviço de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_order +msgid "Field Service Order" +msgstr "Pedido de Serviço de Campo" + +#. module: fieldservice_agreement +#: model:ir.model,name:fieldservice_agreement.model_fsm_person +msgid "Field Service Worker" +msgstr "Trabalhador de Serviço de Campo" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person__id +msgid "ID" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_agreement____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order____last_update +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_person____last_update +msgid "Last Modified on" +msgstr "" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__display_name +msgid "Order" +msgstr "" + +#. module: fieldservice_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.agreement_fsm_order_form_view +msgid "Service Orders" +msgstr "Ordens de Serviço" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "Perfil de Serviço" + +#. module: fieldservice_agreement +#: model:ir.model.fields,field_description:fieldservice_agreement.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "Perfis de Serviço" diff --git a/fieldservice_agreement/models/__init__.py b/fieldservice_agreement/models/__init__.py new file mode 100644 index 0000000000..d5a0db88f6 --- /dev/null +++ b/fieldservice_agreement/models/__init__.py @@ -0,0 +1,6 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import agreement +from . import fsm_equipment +from . import fsm_order +from . import fsm_person diff --git a/fieldservice_agreement/models/agreement.py b/fieldservice_agreement/models/agreement.py new file mode 100644 index 0000000000..60573c2d5b --- /dev/null +++ b/fieldservice_agreement/models/agreement.py @@ -0,0 +1,60 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class Agreement(models.Model): + _inherit = "agreement" + + service_order_count = fields.Integer( + compute="_compute_service_order_count", string="# Service Orders" + ) + equipment_count = fields.Integer("# Equipments", compute="_compute_equipment_count") + fsm_location_id = fields.Many2one("fsm.location", string="FSM Location") + + def _compute_service_order_count(self): + for agreement in self: + agreement.service_order_count = self.env["fsm.order"].search_count( + [("agreement_id", "=", agreement.id)] + ) + + def action_view_service_order(self): + for agreement in self: + fsm_order_ids = self.env["fsm.order"].search( + [("agreement_id", "=", agreement.id)] + ) + action = self.env["ir.actions.act_window"]._for_xml_id( + "fieldservice.action_fsm_operation_order" + ) + if len(fsm_order_ids) == 1: + action["views"] = [ + (self.env.ref("fieldservice.fsm_order_form").id, "form") + ] + action["res_id"] = fsm_order_ids.ids[0] + else: + action["domain"] = [("id", "in", fsm_order_ids.ids)] + return action + + def _compute_equipment_count(self): + for agreement in self: + agreement.equipment_count = self.env["fsm.equipment"].search_count( + [("agreement_id", "=", agreement.id)] + ) + + def action_view_fsm_equipment(self): + for agreement in self: + equipment_ids = self.env["fsm.equipment"].search( + [("agreement_id", "=", agreement.id)] + ) + action = self.env["ir.actions.act_window"]._for_xml_id( + "fieldservice.action_fsm_equipment" + ) + if len(equipment_ids) == 1: + action["views"] = [ + (self.env.ref("fieldservice.fsm_equipment_form_view").id, "form") + ] + action["res_id"] = equipment_ids.ids[0] + else: + action["domain"] = [("id", "in", equipment_ids.ids)] + return action diff --git a/fieldservice_agreement/models/fsm_equipment.py b/fieldservice_agreement/models/fsm_equipment.py new file mode 100644 index 0000000000..8ff8d7f374 --- /dev/null +++ b/fieldservice_agreement/models/fsm_equipment.py @@ -0,0 +1,10 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class FSMEquipment(models.Model): + _inherit = "fsm.equipment" + + agreement_id = fields.Many2one("agreement", string="Agreement") diff --git a/fieldservice_agreement/models/fsm_order.py b/fieldservice_agreement/models/fsm_order.py new file mode 100644 index 0000000000..1138f20ce4 --- /dev/null +++ b/fieldservice_agreement/models/fsm_order.py @@ -0,0 +1,10 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class FSMOrder(models.Model): + _inherit = "fsm.order" + + agreement_id = fields.Many2one("agreement", string="Agreement") diff --git a/fieldservice_agreement/models/fsm_person.py b/fieldservice_agreement/models/fsm_person.py new file mode 100644 index 0000000000..d56acecf18 --- /dev/null +++ b/fieldservice_agreement/models/fsm_person.py @@ -0,0 +1,37 @@ +# 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 FSMPerson(models.Model): + _inherit = "fsm.person" + + agreement_count = fields.Integer( + string="# of Agreements", compute="_compute_agreements" + ) + + def _compute_agreements(self): + self.agreement_count = self.env["agreement"].search_count( + [("partner_id", "=", self.name)] + ) + + def action_view_agreements(self): + for person in self: + action = self.env["ir.actions.act_window"]._for_xml_id( + "agreement.agreement_action" + ) + agreements = self.env["agreement"].search( + [("partner_id", "=", person.partner_id.id)] + ) + if len(agreements) == 1: + action["views"] = [ + ( + self.env.ref("agreement.agreement_form").id, + "form", + ) + ] + action["res_id"] = agreements.id + else: + action["domain"] = [("id", "in", agreements.ids)] + return action diff --git a/fieldservice_agreement/pyproject.toml b/fieldservice_agreement/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/fieldservice_agreement/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/fieldservice_agreement/readme/CONFIGURE.md b/fieldservice_agreement/readme/CONFIGURE.md new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/fieldservice_agreement/readme/CONFIGURE.md @@ -0,0 +1 @@ + diff --git a/fieldservice_agreement/readme/CONTRIBUTORS.md b/fieldservice_agreement/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..6a0f355c64 --- /dev/null +++ b/fieldservice_agreement/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Bhavesh Odedra \<\> +- Sandip Mangukiya \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> +- Patrick Wilson \<\> +- Italo LOPES \<\> diff --git a/fieldservice_agreement/readme/CREDITS.md b/fieldservice_agreement/readme/CREDITS.md new file mode 100644 index 0000000000..f276e4261e --- /dev/null +++ b/fieldservice_agreement/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +- Open Source Integrators diff --git a/fieldservice_agreement/readme/DESCRIPTION.md b/fieldservice_agreement/readme/DESCRIPTION.md new file mode 100644 index 0000000000..eced13c0e0 --- /dev/null +++ b/fieldservice_agreement/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +Odoo Agreement App does not provide an easy way to access field service +orders related to an agreement. Some organizations needs to have a quick +access to field service orders to track the performance of an agreement. + +This module allows you to link a field service order to an agreement and +adds a smart button on the agreement to look at the list of related +field service orders. diff --git a/fieldservice_agreement/readme/ROADMAP.md b/fieldservice_agreement/readme/ROADMAP.md new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/fieldservice_agreement/readme/ROADMAP.md @@ -0,0 +1 @@ + diff --git a/fieldservice_agreement/readme/USAGE.md b/fieldservice_agreement/readme/USAGE.md new file mode 100644 index 0000000000..ef70ef822f --- /dev/null +++ b/fieldservice_agreement/readme/USAGE.md @@ -0,0 +1,8 @@ +To use this module: + +- Go to Field Service \> Operations \> Orders +- Select or create a field service order and set the agreement +- Go to Agreement \> Agreements +- Open the previous agreement +- Click on the smart button "Service Orders" to see the list of related + field service orders diff --git a/fieldservice_agreement/static/description/icon.png b/fieldservice_agreement/static/description/icon.png new file mode 100644 index 0000000000..955674d8f0 Binary files /dev/null and b/fieldservice_agreement/static/description/icon.png differ diff --git a/fieldservice_agreement/static/description/index.html b/fieldservice_agreement/static/description/index.html new file mode 100644 index 0000000000..6d7eb40e53 --- /dev/null +++ b/fieldservice_agreement/static/description/index.html @@ -0,0 +1,460 @@ + + + + + +Field Service - Agreements + + + +
+

Field Service - Agreements

+ + +

Beta License: AGPL-3 OCA/field-service Translate me on Weblate Try me on Runboat

+

Odoo Agreement App does not provide an easy way to access field service +orders related to an agreement. Some organizations needs to have a quick +access to field service orders to track the performance of an agreement.

+

This module allows you to link a field service order to an agreement and +adds a smart button on the agreement to look at the list of related +field service orders.

+

Table of contents

+ + +
+

Usage

+

To use this module:

+
    +
  • Go to Field Service > Operations > Orders
  • +
  • Select or create a field service order and set the agreement
  • +
  • Go to Agreement > Agreements
  • +
  • Open the previous agreement
  • +
  • Click on the smart button “Service Orders” to see the list of related +field service orders
  • +
+
+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Open Source Integrators
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Open Source Integrators
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainers:

+

max3903 bodedra smangukiya osi-scampbell patrickrwilson

+

This module is part of the OCA/field-service project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/fieldservice_agreement/tests/__init__.py b/fieldservice_agreement/tests/__init__.py new file mode 100644 index 0000000000..d7abc9fc1f --- /dev/null +++ b/fieldservice_agreement/tests/__init__.py @@ -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 test_fsm_agreement diff --git a/fieldservice_agreement/tests/test_fsm_agreement.py b/fieldservice_agreement/tests/test_fsm_agreement.py new file mode 100644 index 0000000000..b6187d0790 --- /dev/null +++ b/fieldservice_agreement/tests/test_fsm_agreement.py @@ -0,0 +1,82 @@ +# Copyright (C) 2019 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields +from odoo.tests.common import Form, TransactionCase + + +class FSMOrder(TransactionCase): + def setUp(self): + super().setUp() + self.Order = self.env["fsm.order"] + self.Agreement = self.env["agreement"] + self.Equipment = self.env["fsm.equipment"] + self.test_location = self.env.ref("fieldservice.test_location") + self.agreement_type = self.env["agreement.type"].create( + {"name": "Test Agreement Type"} + ) + self.test_person = self.env.ref("fieldservice.test_person") + self.service = self.env.ref("product.product_product_1_product_template") + + def test_fsm_agreement(self): + """ + By create new order and equipment and link to an agreement, I expect, + - Agreement count and link to the order/equipment is corrrect + - Location's service profile display correctly + - Person (partner) can relate back to agreement correctly + """ + # Create agreement and assign to test location + view_id = "agreement.agreement_form" + with Form(self.Agreement, view=view_id) as f: + f.name = "Test Agreement" + f.agreement_type_id = self.agreement_type + f.code = "TestAgreement" + f.start_date = f.end_date = fields.Date.today() + f.fsm_location_id = self.test_location + f.partner_id = self.test_person.partner_id + agreement = f.save() + # Create 2 Orders, that link to this agreement + vals = { + "name": "Order1", + "location_id": self.test_location.id, + "agreement_id": agreement.id, + } + order1 = self.Order.create(vals) + agreement._compute_service_order_count() + self.assertEqual(agreement.service_order_count, 1) + self.assertEqual(order1.id, agreement.action_view_service_order()["res_id"]) + vals = { + "name": "Order2", + "location_id": self.test_location.id, + "agreement_id": agreement.id, + } + order2 = self.Order.create(vals) + agreement._compute_service_order_count() + self.assertEqual(agreement.service_order_count, 2) + self.assertEqual( + [order1.id, order2.id], + agreement.action_view_service_order()["domain"][0][2], + ) + # Create 3 equipment, that link to this agreement + vals = { + "name": "EQ1", + "current_location_id": self.test_location.id, + "agreement_id": agreement.id, + } + equipment1 = self.Equipment.create(vals) + agreement._compute_service_order_count() + self.assertEqual(agreement.equipment_count, 1) + self.assertEqual(equipment1.id, agreement.action_view_fsm_equipment()["res_id"]) + equipment2 = equipment1.copy({"name": "EQ2"}) + equipment3 = equipment1.copy({"name": "EQ3"}) + agreement._compute_equipment_count() + self.assertEqual(agreement.equipment_count, 3) + self.assertEqual( + [equipment1.id, equipment2.id, equipment3.id], + agreement.action_view_fsm_equipment()["domain"][0][2], + ) + # Person (partner) can relate back to agreement correctly + self.assertEqual(self.test_person.agreement_count, 1) + self.assertEqual( + self.test_person.action_view_agreements()["res_id"], agreement.id + ) diff --git a/fieldservice_agreement/views/agreement_view.xml b/fieldservice_agreement/views/agreement_view.xml new file mode 100644 index 0000000000..1febf23b88 --- /dev/null +++ b/fieldservice_agreement/views/agreement_view.xml @@ -0,0 +1,67 @@ + + + + + agreement.form.fsm.order.view + agreement + + +
+ + +
+ + + + + + + + + + +
+
+ + + agreement.search.fields + agreement + search + + + + + + + + +
diff --git a/fieldservice_agreement/views/fsm_equipment_view.xml b/fieldservice_agreement/views/fsm_equipment_view.xml new file mode 100644 index 0000000000..234217fcec --- /dev/null +++ b/fieldservice_agreement/views/fsm_equipment_view.xml @@ -0,0 +1,42 @@ + + + + + fsm.equipment.agreement.form + fsm.equipment + + + + + + + + + + + + + + + + + + fsm.equipment.select.agreement + fsm.equipment + + + + + + + + + diff --git a/fieldservice_agreement/views/fsm_order_view.xml b/fieldservice_agreement/views/fsm_order_view.xml new file mode 100644 index 0000000000..353408efe4 --- /dev/null +++ b/fieldservice_agreement/views/fsm_order_view.xml @@ -0,0 +1,35 @@ + + + + + fsm.order.agreement.form + fsm.order + + + + + + + + + + + fsm.order.select.agreement + fsm.order + + + + + + + + + diff --git a/fieldservice_agreement/views/fsm_person.xml b/fieldservice_agreement/views/fsm_person.xml new file mode 100644 index 0000000000..26de17f35d --- /dev/null +++ b/fieldservice_agreement/views/fsm_person.xml @@ -0,0 +1,26 @@ + + + + fsm.person.form + fsm.person + + +
+ +
+
+
+ +
diff --git a/fieldservice_agreement_serviceprofile/README.rst b/fieldservice_agreement_serviceprofile/README.rst new file mode 100644 index 0000000000..747871d1ba --- /dev/null +++ b/fieldservice_agreement_serviceprofile/README.rst @@ -0,0 +1,107 @@ +========================================== +Field Service - Agreements Service Profile +========================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:816250d8ffb8cfea7c4b4b6dba339375ea9264b6ff922a6c0d346939ffe04116 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/17.0/fieldservice_agreement_serviceprofile + :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-17-0/field-service-17-0-fieldservice_agreement_serviceprofile + :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=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Glue module for Field Service Agreement and Service Profile + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Open Source Integrators + +Contributors +------------ + +- Bhavesh Odedra +- Sandip Mangukiya +- Serpent Consulting Services Pvt. Ltd. +- Patrick Wilson +- Italo LOPES + +Other credits +------------- + +The development of this module has been financially supported by: + +- Open Source Integrators + +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 +.. |maintainer-bodedra| image:: https://github.com/bodedra.png?size=40px + :target: https://github.com/bodedra + :alt: bodedra +.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px + :target: https://github.com/smangukiya + :alt: smangukiya +.. |maintainer-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px + :target: https://github.com/osi-scampbell + :alt: osi-scampbell +.. |maintainer-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px + :target: https://github.com/patrickrwilson + :alt: patrickrwilson + +Current `maintainers `__: + +|maintainer-max3903| |maintainer-bodedra| |maintainer-smangukiya| |maintainer-osi-scampbell| |maintainer-patrickrwilson| + +This module is part of the `OCA/field-service `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/fieldservice_agreement_serviceprofile/__init__.py b/fieldservice_agreement_serviceprofile/__init__.py new file mode 100644 index 0000000000..631bd4893a --- /dev/null +++ b/fieldservice_agreement_serviceprofile/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/fieldservice_agreement_serviceprofile/__manifest__.py b/fieldservice_agreement_serviceprofile/__manifest__.py new file mode 100644 index 0000000000..0b2287e2dd --- /dev/null +++ b/fieldservice_agreement_serviceprofile/__manifest__.py @@ -0,0 +1,30 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Field Service - Agreements Service Profile", + "summary": "Manage Field Service agreements and contracts", + "author": "Open Source Integrators, " "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/field-service", + "category": "Field Service", + "license": "AGPL-3", + "version": "17.0.1.0.0", + "depends": [ + "agreement_serviceprofile", + "fieldservice_agreement", + ], + "data": [ + "views/fsm_order_view.xml", + "views/fsm_equipment_view.xml", + "views/fsm_location.xml", + ], + "installable": True, + "development_status": "Beta", + "maintainers": [ + "max3903", + "bodedra", + "smangukiya", + "osi-scampbell", + "patrickrwilson", + ], +} diff --git a/fieldservice_agreement_serviceprofile/i18n/fieldservice_agreement_serviceprofile.pot b/fieldservice_agreement_serviceprofile/i18n/fieldservice_agreement_serviceprofile.pot new file mode 100644 index 0000000000..45a79c0179 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/i18n/fieldservice_agreement_serviceprofile.pot @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_agreement_serviceprofile +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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_agreement_serviceprofile +#: model:ir.model.fields,field_description:fieldservice_agreement_serviceprofile.field_fsm_equipment__serviceprofile_id +#: model:ir.model.fields,field_description:fieldservice_agreement_serviceprofile.field_fsm_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement_serviceprofile.fsm_equipment_search_view_agreement +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement_serviceprofile.search_fsm_order_filter_agreement +msgid "Service Profile" +msgstr "" + +#. module: fieldservice_agreement_serviceprofile +#: model:ir.model.fields,field_description:fieldservice_agreement_serviceprofile.field_fsm_location__serviceprofile_ids +#: model_terms:ir.ui.view,arch_db:fieldservice_agreement_serviceprofile.fsm_location_agreement_serviceprofile +msgid "Service Profiles" +msgstr "" diff --git a/fieldservice_agreement_serviceprofile/models/__init__.py b/fieldservice_agreement_serviceprofile/models/__init__.py new file mode 100644 index 0000000000..2d54910c49 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/models/__init__.py @@ -0,0 +1,5 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import fsm_equipment +from . import fsm_location +from . import fsm_order diff --git a/fieldservice_agreement_serviceprofile/models/fsm_equipment.py b/fieldservice_agreement_serviceprofile/models/fsm_equipment.py new file mode 100644 index 0000000000..bb309ced82 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/models/fsm_equipment.py @@ -0,0 +1,10 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class FSMEquipment(models.Model): + _inherit = "fsm.equipment" + + serviceprofile_id = fields.Many2one("agreement.serviceprofile", "Service Profile") diff --git a/fieldservice_agreement_serviceprofile/models/fsm_location.py b/fieldservice_agreement_serviceprofile/models/fsm_location.py new file mode 100644 index 0000000000..053ae93b16 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/models/fsm_location.py @@ -0,0 +1,29 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class FSMLocation(models.Model): + _inherit = "fsm.location" + + serviceprofile_ids = fields.Many2many( + "agreement.serviceprofile", + string="Service Profiles", + compute="_compute_service_ids", + ) + + def _compute_service_ids(self): + for loc in self: + agreements = self.env["agreement"].search( + [("fsm_location_id", "=", loc.id)] + ) + ids = [] + for agree in agreements: + servpros = self.env["agreement.serviceprofile"].search( + [("agreement_id", "=", agree.id)] + ) + for ser in servpros: + if ser.id not in ids: + ids.append(ser.id) + loc.serviceprofile_ids = ids diff --git a/fieldservice_agreement_serviceprofile/models/fsm_order.py b/fieldservice_agreement_serviceprofile/models/fsm_order.py new file mode 100644 index 0000000000..17da57565e --- /dev/null +++ b/fieldservice_agreement_serviceprofile/models/fsm_order.py @@ -0,0 +1,10 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class FSMOrder(models.Model): + _inherit = "fsm.order" + + serviceprofile_id = fields.Many2one("agreement.serviceprofile", "Service Profile") diff --git a/fieldservice_agreement_serviceprofile/pyproject.toml b/fieldservice_agreement_serviceprofile/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/fieldservice_agreement_serviceprofile/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/fieldservice_agreement_serviceprofile/readme/CONTRIBUTORS.md b/fieldservice_agreement_serviceprofile/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..6a0f355c64 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Bhavesh Odedra \<\> +- Sandip Mangukiya \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> +- Patrick Wilson \<\> +- Italo LOPES \<\> diff --git a/fieldservice_agreement_serviceprofile/readme/CREDITS.md b/fieldservice_agreement_serviceprofile/readme/CREDITS.md new file mode 100644 index 0000000000..f276e4261e --- /dev/null +++ b/fieldservice_agreement_serviceprofile/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +- Open Source Integrators diff --git a/fieldservice_agreement_serviceprofile/readme/DESCRIPTION.md b/fieldservice_agreement_serviceprofile/readme/DESCRIPTION.md new file mode 100644 index 0000000000..bc590420fc --- /dev/null +++ b/fieldservice_agreement_serviceprofile/readme/DESCRIPTION.md @@ -0,0 +1 @@ +Glue module for Field Service Agreement and Service Profile diff --git a/fieldservice_agreement_serviceprofile/static/description/icon.png b/fieldservice_agreement_serviceprofile/static/description/icon.png new file mode 100644 index 0000000000..955674d8f0 Binary files /dev/null and b/fieldservice_agreement_serviceprofile/static/description/icon.png differ diff --git a/fieldservice_agreement_serviceprofile/static/description/index.html b/fieldservice_agreement_serviceprofile/static/description/index.html new file mode 100644 index 0000000000..f3d8a641c5 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/static/description/index.html @@ -0,0 +1,434 @@ + + + + + +Field Service - Agreements Service Profile + + + +
+

Field Service - Agreements Service Profile

+ + +

Beta License: AGPL-3 OCA/field-service Translate me on Weblate Try me on Runboat

+

Glue module for Field Service Agreement and Service Profile

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Open Source Integrators
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Open Source Integrators
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainers:

+

max3903 bodedra smangukiya osi-scampbell patrickrwilson

+

This module is part of the OCA/field-service project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/fieldservice_agreement_serviceprofile/views/fsm_equipment_view.xml b/fieldservice_agreement_serviceprofile/views/fsm_equipment_view.xml new file mode 100644 index 0000000000..66cab05ebc --- /dev/null +++ b/fieldservice_agreement_serviceprofile/views/fsm_equipment_view.xml @@ -0,0 +1,38 @@ + + + + + fsm.equipment.agreement.form + fsm.equipment + + + + + + + + + + + fsm.equipment.select.agreement + fsm.equipment + + + + + + + + + diff --git a/fieldservice_agreement_serviceprofile/views/fsm_location.xml b/fieldservice_agreement_serviceprofile/views/fsm_location.xml new file mode 100644 index 0000000000..9719ae2b0c --- /dev/null +++ b/fieldservice_agreement_serviceprofile/views/fsm_location.xml @@ -0,0 +1,22 @@ + + + + fsm.location.agreement.serviceprofile + fsm.location + + + + + + + + + + + + + + + + + diff --git a/fieldservice_agreement_serviceprofile/views/fsm_order_view.xml b/fieldservice_agreement_serviceprofile/views/fsm_order_view.xml new file mode 100644 index 0000000000..8b16fcc982 --- /dev/null +++ b/fieldservice_agreement_serviceprofile/views/fsm_order_view.xml @@ -0,0 +1,38 @@ + + + + + fsm.order.agreement.form + fsm.order + + + + + + + + + + + fsm.order.select.agreement + fsm.order + + + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000000..55fe37c405 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +odoo-addon-agreement @ git+https://github.com/OCA/agreement.git@refs/pull/35/head#subdirectory=agreement +odoo-addon-agreement_serviceprofile @ git+https://github.com/OCA/agreement.git@refs/pull/39/head#subdirectory=agreement_serviceprofile +odoo-addon-agreement_legal @ git+https://github.com/OCA/agreement.git@refs/pull/40/head#subdirectory=agreement_legal