Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] fieldservice_crm: Migration to 17.0 #1173

Merged
merged 48 commits into from
Apr 16, 2024
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
474d1f9
[Add] fieldservice_crm
patrickrwilson Oct 1, 2019
4a7c1ab
[UPD] Description.rst
patrickrwilson Oct 1, 2019
7a58609
[FIX] LINT
patrickrwilson Oct 2, 2019
e16aac1
Update fieldservice_crm/views/fsm_location.xml
patrickrwilson Oct 10, 2019
7891b58
[FIX] fieldservice_crm
max3903 Oct 11, 2019
5afbe01
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Nov 21, 2019
3f31ab1
Added translation using Weblate (German)
marylla Nov 22, 2019
37dbbd4
Translated using Weblate (German)
marylla Nov 22, 2019
40f9378
Translated using Weblate (German)
marylla Nov 26, 2019
163f9cf
Translated using Weblate (German)
marylla Nov 26, 2019
e143460
Added translation using Weblate (Spanish (Chile))
Jan 16, 2020
9db0f38
Translated using Weblate (Spanish (Chile))
Jan 16, 2020
4586e22
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 5, 2020
4f8e273
[FIX] fieldservice_crm: Access rights
max3903 Apr 3, 2020
4838d84
fieldservice_crm 12.0.1.1.0
OCA-git-bot Apr 4, 2020
6d477bc
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
4211067
[IMP] fieldservice_crm: black, isort, prettier
brian10048 Jul 20, 2020
ff0e0a8
[MIG] fieldservice_crm: Migration to 13.0
brian10048 Jul 20, 2020
46e49bc
[UPD] Update fieldservice_crm.pot
oca-travis Jul 29, 2020
02eb11a
[UPD] README.rst
OCA-git-bot Jul 29, 2020
1a1be6f
Added translation using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
5b9d390
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
2099cce
[14.0][MIG] fieldservice_crm.
Chanakya-OSI Jun 4, 2021
c56693e
[IMP]Added test cases.
Chanakya-OSI Jun 4, 2021
0a200dc
[IMP]pre-commit checks.
Chanakya-OSI Jun 8, 2021
a6e2ba7
[UPD] Update fieldservice_crm.pot
oca-travis Jun 8, 2021
4612fe7
[UPD] README.rst
OCA-git-bot Jun 8, 2021
cb0380a
Translated using Weblate (Portuguese (Brazil))
britoederr Jun 8, 2021
a7a79c3
[14.0][FIX]fieldservice_crm: Service Location Field not showing up on…
vimalpatelserpentcs Sep 1, 2021
92d26e1
fieldservice_crm 14.0.1.1.0
OCA-git-bot Sep 7, 2021
54c3013
[15.0][FIX] Fixed travis
Freni-OSI Jan 13, 2022
600477c
[15.0][MIG] fieldservice_crm
Freni-OSI Jan 13, 2022
3171ad0
[UPD] Update fieldservice_crm.pot
Oct 20, 2022
11bb680
[UPD] README.rst
OCA-git-bot Oct 20, 2022
7e34dc1
Update translation files
weblate Oct 20, 2022
352a869
Added translation using Weblate (Italian)
mymage Oct 27, 2022
694fe72
Translated using Weblate (Italian)
mymage Oct 27, 2022
e40bf7e
[MIG] fieldservice_crm: Migration to 16.0
gbrito Oct 28, 2022
e2a8b51
[UPD] Update fieldservice_crm.pot
Nov 2, 2022
358ab11
[UPD] README.rst
OCA-git-bot Nov 2, 2022
e2d0766
Translated using Weblate (Italian)
francesco-ooops Feb 1, 2023
bd700c3
Added translation using Weblate (Spanish)
Ivorra78 Jul 22, 2023
28bfd92
Translated using Weblate (Spanish)
Ivorra78 Jul 22, 2023
2423f61
[UPD] README.rst
OCA-git-bot Sep 3, 2023
6d30d31
Added translation using Weblate (French)
houzefa-abba Dec 19, 2023
35a224b
Translated using Weblate (French)
houzefa-abba Dec 19, 2023
99697d1
[IMP] fieldservice_crm: pre-commit auto fixes
peluko00 Apr 12, 2024
b1c99fc
[MIG] fieldservice_crm: Migration to 17.0
peluko00 Apr 12, 2024
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
126 changes: 126 additions & 0 deletions fieldservice_crm/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
===================
Field Service - CRM
===================

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

.. |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_crm
: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_crm
: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|

The module integrates the field service application with CRM
opportunities. This can be useful in scenarios where onsite personnel
are needed for evaluation or surveying before quoting.

**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/13.0/base_geoengine

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

No configuration is needed.

Usage
=====

- User must have Field Service User permissions
- Go to CRM app
- Create a new Opportunity
- Click the FS Orders Smart Button
- Create a Field Service Order

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_crm%0Aversion:%2017.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
-------

* Patrick Wilson

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

- Patrick Wilson <patrickraymondwilson@gmail.com>
- Freni Patel <fpatel@opensourceintegrators.com>
- `APSL <https://apsl.tech>`__:

- Antoni Marroig <amarroig@apsl.net>

Other credits
-------------

The development of this module has been financially supported by:

- Pavlov Media <https://www.pavlovmedia.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-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px
:target: https://github.com/patrickrwilson
:alt: patrickrwilson

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

|maintainer-patrickrwilson|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/17.0/fieldservice_crm>`_ 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_crm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions fieldservice_crm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Field Service - CRM",
"version": "17.0.1.0.0",
"summary": "Create Field Service orders from the CRM",
"category": "Field Service",
"author": "Patrick Wilson, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": ["fieldservice", "crm"],
"data": [
"views/crm_lead.xml",
"views/fsm_location.xml",
"views/fsm_order.xml",
"security/ir.model.access.csv",
],
"license": "AGPL-3",
"development_status": "Beta",
"maintainers": ["patrickrwilson"],
"installable": True,
}
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-26 14:27+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\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_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "# Service-Auftr??ge"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "# Verkaufschancen"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "Service-Auftr??ge"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Field-Service-Ort"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Field-Service-Ort"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_order
msgid "Field Service Order"
msgstr "Field-Service-Auftrag"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Interessent / Chance"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Verkaufschancen"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Verkaufschance"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "Service-Auftr??ge"
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-22 21:08+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "# Pedidos FSM"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "# Oportunidades"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "Órdenes FS"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Ubicación FSM"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Ubicación del servicio de campo"

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

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Iniciativa/oportunidad"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Oportunidades"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Oportunidad"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "Órdenes de servicio"
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-04-27 20:47+0000\n"
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\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.3.2\n"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "# Pedidos FSM"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "# Oportunidades"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "Pedidos FS"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Ubicación FSM"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Ubicación del Servicio de Campo"

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

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Iniciativa/Oportunidad"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Oportunidades"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Oportunidad"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "Órdenes de Servicio"
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/es_CL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-01-16 22:38+0000\n"
"Last-Translator: Nelson Ram??rez S??nchez <info@konos.cl>\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.10\n"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "# Pedidos FSM"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "# Oportunidades"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "??rdenes FS"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Ubicaci??n FSM"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Ubicaci??n del servicio de campo"

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

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Iniciativa/Oportunidad"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Oportunidades"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Oportunidad"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "??rdenes de Servicio"
64 changes: 64 additions & 0 deletions fieldservice_crm/i18n/fieldservice_crm.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr ""

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr ""

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr ""

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr ""

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr ""

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

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr ""

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr ""

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr ""

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr ""
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-19 15:25+0000\n"
"Last-Translator: Houzéfa Abbasbhay <houzefa.abba@xcg-consulting.fr>\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.17\n"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "# Commandes de service sur site"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "# Opportunités"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "Commandes de service sur site"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Localisation du site"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Localisation du service sur site"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_order
msgid "Field Service Order"
msgstr "Commande de service sur site"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Piste/Opportunité"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Opportunités"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Opportunité"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "Commandes de service sur site"
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-02-01 18:46+0000\n"
"Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\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_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "N° ordine FSM"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "N° opportunità"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "Ordini FS"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Località FSM"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Località assistenza sul campo"

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

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Contatto/Opportunità"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Opportunità"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Opportunità"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "Ordini servizio"
67 changes: 67 additions & 0 deletions fieldservice_crm/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-06-08 21:48+0000\n"
"Last-Translator: Eder Brito <britoederr@gmail.com>\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 4.3.2\n"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count
msgid "# FSM Orders"
msgstr "# Ordens de Serviço"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count
msgid "# Opportunities"
msgstr "# Oportunidades"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view
msgid "FS Orders"
msgstr "Ordens de Serviço"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id
msgid "FSM Location"
msgstr "Local de GSC"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_location
msgid "Field Service Location"
msgstr "Local de Serviço de Campo"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_fsm_order
msgid "Field Service Order"
msgstr "Ordem de Serviço de Campo"

#. module: fieldservice_crm
#: model:ir.model,name:fieldservice_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Lead/Oportunidade"

#. module: fieldservice_crm
#: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view
msgid "Opportunities"
msgstr "Oportunidades"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id
msgid "Opportunity"
msgstr "Oportunidade"

#. module: fieldservice_crm
#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids
msgid "Service Orders"
msgstr "Ordens de Serviço"
6 changes: 6 additions & 0 deletions fieldservice_crm/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import crm_lead
from . import fsm_location
from . import fsm_order
20 changes: 20 additions & 0 deletions fieldservice_crm/models/crm_lead.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class Lead(models.Model):
_inherit = "crm.lead"

fsm_order_ids = fields.One2many(
"fsm.order", "opportunity_id", string="Service Orders"
)
fsm_location_id = fields.Many2one("fsm.location", string="FSM Location")
fsm_order_count = fields.Integer(
compute="_compute_fsm_order_count", string="# FSM Orders"
)

def _compute_fsm_order_count(self):
for rec in self:
rec.fsm_order_count = len(rec.fsm_order_ids)
18 changes: 18 additions & 0 deletions fieldservice_crm/models/fsm_location.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class FSMLocation(models.Model):
_inherit = "fsm.location"

opportunity_count = fields.Integer(
compute="_compute_opportunity_count", string="# Opportunities"
)

def _compute_opportunity_count(self):
for fsm_location in self:
fsm_location.opportunity_count = self.env["crm.lead"].search_count(
[("fsm_location_id", "=", fsm_location.id)]
)
10 changes: 10 additions & 0 deletions fieldservice_crm/models/fsm_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


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

opportunity_id = fields.Many2one("crm.lead", tracking=True)
3 changes: 3 additions & 0 deletions fieldservice_crm/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions fieldservice_crm/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No configuration is needed.
4 changes: 4 additions & 0 deletions fieldservice_crm/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Patrick Wilson \<<patrickraymondwilson@gmail.com>\>
- Freni Patel \<<fpatel@opensourceintegrators.com>\>
- [APSL](https://apsl.tech):
- Antoni Marroig \<<amarroig@apsl.net>\>
3 changes: 3 additions & 0 deletions fieldservice_crm/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The development of this module has been financially supported by:

- Pavlov Media \<<https://www.pavlovmedia.com>\>
3 changes: 3 additions & 0 deletions fieldservice_crm/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The module integrates the field service application with CRM
opportunities. This can be useful in scenarios where onsite personnel
are needed for evaluation or surveying before quoting.
5 changes: 5 additions & 0 deletions fieldservice_crm/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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/13.0/base_geoengine>
2 changes: 2 additions & 0 deletions fieldservice_crm/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The roadmap of the Field Service application is documented on
[Github](https://github.com/OCA/field-service/issues/1).
5 changes: 5 additions & 0 deletions fieldservice_crm/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- User must have Field Service User permissions
- Go to CRM app
- Create a new Opportunity
- Click the FS Orders Smart Button
- Create a Field Service Order
3 changes: 3 additions & 0 deletions fieldservice_crm/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_fsm_order_change_internal,fsm.order.internal.user,model_fsm_order,base.group_user,1,0,0,0
access_crm_lead_fsm_user,crm.lead.fsm.user,model_crm_lead,fieldservice.group_fsm_user,1,0,0,0
Binary file added fieldservice_crm/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
468 changes: 468 additions & 0 deletions fieldservice_crm/static/description/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions fieldservice_crm/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_fsm_crm
30 changes: 30 additions & 0 deletions fieldservice_crm/tests/test_fsm_crm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from odoo.tests import common


class TestFieldserviceCrm(common.TransactionCase):
def test_fieldservicecrm(self):
location_1 = self.env["fsm.location"].create(
{
"name": "Summer's House",
"owner_id": self.env["res.partner"]
.create({"name": "Summer's Parents"})
.id,
}
)
crm_1 = self.env["crm.lead"].create(
{
"name": "Test CRM",
"fsm_location_id": location_1.id,
}
)
self.env["fsm.order"].create(
{
"location_id": location_1.id,
"opportunity_id": crm_1.id,
}
)
crm_1._compute_fsm_order_count()
self.assertEqual(crm_1.fsm_order_count, 1)

location_1._compute_opportunity_count()
self.assertEqual(location_1.opportunity_count, 1)
62 changes: 62 additions & 0 deletions fieldservice_crm/views/crm_lead.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!-- Copyright 2019 Patrick Wilson <patrickraymondwilson@gmail.com
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="fieldservice_crm_form_view" model="ir.ui.view">
<field name="name">fieldservice.crm.form</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field eval="1" name="priority" />
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button
class="oe_stat_button o_res_partner_tip_opp"
type="action"
invisible="type == 'lead'"
name="%(fieldservice.action_fsm_dash_order)d"
icon="fa-truck"
groups="fieldservice.group_fsm_user"
context="{'search_default_opportunity_id': active_id,
'default_location_id': fsm_location_id}"
>
<field
string="FS Orders"
name="fsm_order_count"
widget="statinfo"
/>
</button>
</xpath>
<xpath
expr="//group[@name='lead_partner']/field[@name='partner_id']"
position="after"
>
<field name="fsm_location_id" groups="fieldservice.group_fsm_user" />
</xpath>
<xpath
expr="//group[@name='opportunity_partner']/field[@name='partner_id']"
position="after"
>
<field name="fsm_location_id" groups="fieldservice.group_fsm_user" />
</xpath>
</field>
</record>
<record id="fieldservice_crm_list_view" model="ir.ui.view">
<field name="name">fieldservice.crm.list</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor" />
<field name="arch" type="xml">
<field name="partner_id" position="before">
<field name="fsm_location_id" />
</field>
</field>
</record>
<record id="fieldservice_crm_view_search" model="ir.ui.view">
<field name="name">crm.fieldservice.search</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter" />
<field name="arch" type="xml">
<field name="partner_id" position="before">
<field name="fsm_location_id" />
</field>
</field>
</record>
</odoo>
28 changes: 28 additions & 0 deletions fieldservice_crm/views/fsm_location.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Copyright 2019 Patrick Wilson <patrickraymondwilson@gmail.com
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="fsm_location_crm_form_view" model="ir.ui.view">
<field name="name">fsm.location.crm.form</field>
<field name="model">fsm.location</field>
<field name="inherit_id" ref="fieldservice.fsm_location_form_view" />
<field name="arch" type="xml">
<div class="oe_button_box" position="inside">
<button
class="oe_stat_button o_res_partner_tip_opp"
type="action"
name="%(crm.crm_lead_opportunities)d"
icon="fa-star"
groups="sales_team.group_sale_salesman"
context="{'search_default_fsm_location_id': active_id,
'default_fsm_location_id': active_id}"
>
<field
string="Opportunities"
name="opportunity_count"
widget="statinfo"
/>
</button>
</div>
</field>
</record>
</odoo>
34 changes: 34 additions & 0 deletions fieldservice_crm/views/fsm_order.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- Copyright 2019 Patrick Wilson <patrickraymondwilson@gmail.com
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="fsm_order_crm_list_view" model="ir.ui.view">
<field name="name">fsm.order.crm.list</field>
<field name="model">fsm.order</field>
<field name="inherit_id" ref="fieldservice.fsm_order_tree_view" />
<field name="arch" type="xml">
<field name="person_id" position="before">
<field name="opportunity_id" />
</field>
</field>
</record>
<record id="fsm_order_crm_form_view" model="ir.ui.view">
<field name="name">fsm.order.crm.form</field>
<field name="model">fsm.order</field>
<field name="inherit_id" ref="fieldservice.fsm_order_form" />
<field name="arch" type="xml">
<field name="priority" position="before">
<field name="opportunity_id" />
</field>
</field>
</record>
<record id="fsm_order_crm_search_view" model="ir.ui.view">
<field name="name">fsm.order.crm.search</field>
<field name="model">fsm.order</field>
<field name="inherit_id" ref="fieldservice.fsm_order_search_view" />
<field name="arch" type="xml">
<field name="person_ids" position="after">
<field name="opportunity_id" />
</field>
</field>
</record>
</odoo>