From 474d1f96c855b5f4a5fba5f12e45434a9bd690cd Mon Sep 17 00:00:00 2001 From: patrickrwilson <36892066+patrickrwilson@users.noreply.github.com> Date: Tue, 1 Oct 2019 15:37:32 -0500 Subject: [PATCH 01/48] [Add] fieldservice_crm Adding new module named fieldservice_crm that connects CRM and Field Service Orders. This can be useful in the event where people need to go onsite to evaluate a sales opportunity before quoting. --- fieldservice_crm/README.rst | 112 ++++++++++++++++++ fieldservice_crm/__init__.py | 4 + fieldservice_crm/__manifest__.py | 27 +++++ fieldservice_crm/models/__init__.py | 6 + fieldservice_crm/models/crm_lead.py | 20 ++++ fieldservice_crm/models/fsm_location.py | 17 +++ fieldservice_crm/models/fsm_order.py | 11 ++ fieldservice_crm/readme/CONFIGURE.rst | 1 + fieldservice_crm/readme/CONTRIBUTORS.rst | 1 + fieldservice_crm/readme/CREDITS.rst | 3 + fieldservice_crm/readme/DESCRIPTION.rst | 1 + fieldservice_crm/readme/INSTALL.rst | 4 + fieldservice_crm/readme/ROADMAP.rst | 2 + fieldservice_crm/readme/USAGE.rst | 5 + fieldservice_crm/security/ir.model.access.csv | 2 + fieldservice_crm/static/description/icon.png | Bin 0 -> 17808 bytes fieldservice_crm/views/crm_lead.xml | 48 ++++++++ fieldservice_crm/views/fsm_location.xml | 22 ++++ fieldservice_crm/views/fsm_order.xml | 35 ++++++ 19 files changed, 321 insertions(+) create mode 100644 fieldservice_crm/README.rst create mode 100644 fieldservice_crm/__init__.py create mode 100644 fieldservice_crm/__manifest__.py create mode 100644 fieldservice_crm/models/__init__.py create mode 100644 fieldservice_crm/models/crm_lead.py create mode 100644 fieldservice_crm/models/fsm_location.py create mode 100644 fieldservice_crm/models/fsm_order.py create mode 100644 fieldservice_crm/readme/CONFIGURE.rst create mode 100644 fieldservice_crm/readme/CONTRIBUTORS.rst create mode 100644 fieldservice_crm/readme/CREDITS.rst create mode 100644 fieldservice_crm/readme/DESCRIPTION.rst create mode 100644 fieldservice_crm/readme/INSTALL.rst create mode 100644 fieldservice_crm/readme/ROADMAP.rst create mode 100644 fieldservice_crm/readme/USAGE.rst create mode 100644 fieldservice_crm/security/ir.model.access.csv create mode 100644 fieldservice_crm/static/description/icon.png create mode 100644 fieldservice_crm/views/crm_lead.xml create mode 100644 fieldservice_crm/views/fsm_location.xml create mode 100644 fieldservice_crm/views/fsm_order.xml diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst new file mode 100644 index 0000000000..70d2dbb297 --- /dev/null +++ b/fieldservice_crm/README.rst @@ -0,0 +1,112 @@ +=================== +Field Service - CRM +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github + :target: https://github.com/OCA/field-service/tree/12.0/fieldservice_sale + :alt: OCA/field-service +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_sale + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/264/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +The module integrates the field service application with CRM opportunities. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +To install Field Service and have the mapping features, you need to install GeoEngine. + +Please refer to the installation instructions available at: +https://github.com/OCA/geospatial/tree/12.0/base_geoengine + +Configuration +============= + +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 `_. + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Patrick Wilson + +Contributors +~~~~~~~~~~~~ + +* Patrick Wilson + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Pavlov Media + +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. + +Current `maintainers `__: + +|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_crm/__init__.py b/fieldservice_crm/__init__.py new file mode 100644 index 0000000000..9b6783efce --- /dev/null +++ b/fieldservice_crm/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019 - TODAY, Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py new file mode 100644 index 0000000000..964b3a2eeb --- /dev/null +++ b/fieldservice_crm/__manifest__.py @@ -0,0 +1,27 @@ +# Copyright (C) 2019 - TODAY, Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Field Service - CRM', + 'version': '12.0.1.0.1', + 'summary': 'CRM Opportunity integration for Field Service', + '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, +} diff --git a/fieldservice_crm/models/__init__.py b/fieldservice_crm/models/__init__.py new file mode 100644 index 0000000000..bfbb6262ff --- /dev/null +++ b/fieldservice_crm/models/__init__.py @@ -0,0 +1,6 @@ +# Copyright (C) 2019 - TODAY, 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 diff --git a/fieldservice_crm/models/crm_lead.py b/fieldservice_crm/models/crm_lead.py new file mode 100644 index 0000000000..b70330e825 --- /dev/null +++ b/fieldservice_crm/models/crm_lead.py @@ -0,0 +1,20 @@ +# Copyright (C) 2019 - TODAY, Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, 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='FS Orders') + + @api.multi + def _compute_fsm_order_count(self): + for opportunity in self: + opportunity.fsm_order_count = self.env['fsm.order'].search_count( + [('opportunity_id', '=', opportunity.id)]) diff --git a/fieldservice_crm/models/fsm_location.py b/fieldservice_crm/models/fsm_location.py new file mode 100644 index 0000000000..cfe52b8e4d --- /dev/null +++ b/fieldservice_crm/models/fsm_location.py @@ -0,0 +1,17 @@ +# Copyright (C) 2019 - TODAY, Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class FSMLocation(models.Model): + _inherit = 'fsm.location' + + opportunity_count = fields.Integer(compute='_compute_opportunity_count', + string='Opportunities') + + @api.multi + 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)]) diff --git a/fieldservice_crm/models/fsm_order.py b/fieldservice_crm/models/fsm_order.py new file mode 100644 index 0000000000..5af9f8d274 --- /dev/null +++ b/fieldservice_crm/models/fsm_order.py @@ -0,0 +1,11 @@ +# Copyright (C) 2019 - TODAY, 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', string='Opportunity', + track_visibility='onchange') diff --git a/fieldservice_crm/readme/CONFIGURE.rst b/fieldservice_crm/readme/CONFIGURE.rst new file mode 100644 index 0000000000..bbf7110614 --- /dev/null +++ b/fieldservice_crm/readme/CONFIGURE.rst @@ -0,0 +1 @@ +No configuration is needed. diff --git a/fieldservice_crm/readme/CONTRIBUTORS.rst b/fieldservice_crm/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..4f895601b0 --- /dev/null +++ b/fieldservice_crm/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Patrick Wilson diff --git a/fieldservice_crm/readme/CREDITS.rst b/fieldservice_crm/readme/CREDITS.rst new file mode 100644 index 0000000000..db59feeeb6 --- /dev/null +++ b/fieldservice_crm/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Pavlov Media diff --git a/fieldservice_crm/readme/DESCRIPTION.rst b/fieldservice_crm/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..bfb01f6b8d --- /dev/null +++ b/fieldservice_crm/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +The module integrates the field service application with CRM opportunities. diff --git a/fieldservice_crm/readme/INSTALL.rst b/fieldservice_crm/readme/INSTALL.rst new file mode 100644 index 0000000000..8571f65376 --- /dev/null +++ b/fieldservice_crm/readme/INSTALL.rst @@ -0,0 +1,4 @@ +To install Field Service and have the mapping features, you need to install GeoEngine. + +Please refer to the installation instructions available at: +https://github.com/OCA/geospatial/tree/12.0/base_geoengine diff --git a/fieldservice_crm/readme/ROADMAP.rst b/fieldservice_crm/readme/ROADMAP.rst new file mode 100644 index 0000000000..f607015959 --- /dev/null +++ b/fieldservice_crm/readme/ROADMAP.rst @@ -0,0 +1,2 @@ +The roadmap of the Field Service application is documented on +`Github `_. diff --git a/fieldservice_crm/readme/USAGE.rst b/fieldservice_crm/readme/USAGE.rst new file mode 100644 index 0000000000..89a3de12d9 --- /dev/null +++ b/fieldservice_crm/readme/USAGE.rst @@ -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 diff --git a/fieldservice_crm/security/ir.model.access.csv b/fieldservice_crm/security/ir.model.access.csv new file mode 100644 index 0000000000..f803ca7882 --- /dev/null +++ b/fieldservice_crm/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_fsm_order_change_internal,FSM Order Internal,model_fsm_order,base.group_user,1,0,0,0 diff --git a/fieldservice_crm/static/description/icon.png b/fieldservice_crm/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..955674d8f0b8c47de3ffa9db25cb109fbe4a1091 GIT binary patch literal 17808 zcmeHvc;{H3sucZElF-G)hC-+rdy@|cVP3o7ETY&& zJl-5>)T;P#Y>Z2k74p9gK&J2CJC5%@{WsV@`$(=#w|Cf>44L@opuIqTY_XMpYif9< zJEhZ)*(Ciawd2E4g!g{`tf-6DV*W@FZ!b&?uih_mMpBM%8|x61r3D=Pkjl)*LT52YNq;hIj5|udFA)RjvAIV zR;k3*$i5qSsi6bcd50k9_J$d6qZe5$CLIT#a*i*=wkVz%dgiqH(oe=68=3m>aXb03 zuyMGqBG(dcQxAcfP+K4yg1i{GtF9VUM32?R>d%HqF@xRPyIc?3mifg(5sPQ&5bDFm zimOQwOnX4K!Srd#7sF2xi^4^1yiGAIq~p7mmzr<~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*3~mEHhT0b`4Yup6AXVlpn+Q7tknyZpxvuEohyH{$F=!8mZnEQAjI zQ46(s-Yaz;wNUgv&W5ThKB{W3(9dUm{iObJMRL?`A=vQt%jg)l{#&O4GI+#Kwjew0nySosF+@T>xBYngWHD;bxF;7b-%>cT74(~!j za)0gM!|>0eyS75X+B()YfAk)l$Phu_s10UQ8K<;`o;##M&SgtTuC$&4T{~TLYh~dK zLm$LxbZ^z;{Wl*6GW5?iFeeetYLG-nRdM6TR)K?1<#+hD&;m{|(ME|BrHBci#pV0oF(@prIFR=LEDdC|` z$6e@>ZBk~p1x{c}1ap=W1^2W?Z=AMy=;mO76+#5-nyl4XmK<5P7YCL|M_(NIF>`>^ z*RLK*lO8nwDMbFyjM$-Z6Jc-2q&bOb^^g1dhQG`X-*=g!K5kpSk08tH`uba$AEu(3 gUHh>HCdQ7*k1fAW1vhU(MTsEtw^U^Fq)ngxAO8EYHUIzs literal 0 HcmV?d00001 diff --git a/fieldservice_crm/views/crm_lead.xml b/fieldservice_crm/views/crm_lead.xml new file mode 100644 index 0000000000..d24a820cde --- /dev/null +++ b/fieldservice_crm/views/crm_lead.xml @@ -0,0 +1,48 @@ + + + + + fieldservice.crm.form + crm.lead + + + + + + + + + + + + + + fieldservice.crm.list + crm.lead + + + + + + + + + crm.fieldservice.search + crm.lead + + + + + + + + diff --git a/fieldservice_crm/views/fsm_location.xml b/fieldservice_crm/views/fsm_location.xml new file mode 100644 index 0000000000..cb86893eec --- /dev/null +++ b/fieldservice_crm/views/fsm_location.xml @@ -0,0 +1,22 @@ + + + + + fsm.location.crm.form + fsm.location + + +
+ +
+
+
+
diff --git a/fieldservice_crm/views/fsm_order.xml b/fieldservice_crm/views/fsm_order.xml new file mode 100644 index 0000000000..c782ac913d --- /dev/null +++ b/fieldservice_crm/views/fsm_order.xml @@ -0,0 +1,35 @@ + + + + + fsm.order.crm.list + fsm.order + + + + + + + + + fsm.order.crm.form + fsm.order + + + + + + + + + fsm.order.crm.search + fsm.order + + + + + + + + From 4a7c1abec91f7a3c8eca796ebf4c79c7e6184c99 Mon Sep 17 00:00:00 2001 From: patrickrwilson <36892066+patrickrwilson@users.noreply.github.com> Date: Tue, 1 Oct 2019 15:40:56 -0500 Subject: [PATCH 02/48] [UPD] Description.rst Added some more info to description.rst --- fieldservice_crm/readme/DESCRIPTION.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fieldservice_crm/readme/DESCRIPTION.rst b/fieldservice_crm/readme/DESCRIPTION.rst index bfb01f6b8d..1bd00eaac3 100644 --- a/fieldservice_crm/readme/DESCRIPTION.rst +++ b/fieldservice_crm/readme/DESCRIPTION.rst @@ -1 +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. From 7a586090803ce5c41e909d1027805e4ec690574b Mon Sep 17 00:00:00 2001 From: patrickrwilson <36892066+patrickrwilson@users.noreply.github.com> Date: Wed, 2 Oct 2019 11:39:30 -0500 Subject: [PATCH 03/48] [FIX] LINT --- fieldservice_crm/README.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 70d2dbb297..26946718d6 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -103,10 +103,6 @@ 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 `__: - -|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. From e16aac14b2413a097adba8de98f734c7c2b5937c Mon Sep 17 00:00:00 2001 From: Patrick Wilson <36892066+patrickrwilson@users.noreply.github.com> Date: Thu, 10 Oct 2019 09:54:06 -0600 Subject: [PATCH 04/48] Update fieldservice_crm/views/fsm_location.xml Fixed spelling error. Co-Authored-By: Maxime Chambreuil --- fieldservice_crm/README.rst | 18 +- .../static/description/index.html | 460 ++++++++++++++++++ fieldservice_crm/views/fsm_location.xml | 2 +- 3 files changed, 475 insertions(+), 5 deletions(-) create mode 100644 fieldservice_crm/static/description/index.html diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 26946718d6..10eeff5377 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -14,18 +14,20 @@ Field Service - CRM :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github - :target: https://github.com/OCA/field-service/tree/12.0/fieldservice_sale + :target: https://github.com/OCA/field-service/tree/12.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-12-0/field-service-12-0-fieldservice_sale + :target: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png :target: https://runbot.odoo-community.org/runbot/264/12.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|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** @@ -66,7 +68,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -103,6 +105,14 @@ 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 `__: + +|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_crm/static/description/index.html b/fieldservice_crm/static/description/index.html new file mode 100644 index 0000000000..fa305e8923 --- /dev/null +++ b/fieldservice_crm/static/description/index.html @@ -0,0 +1,460 @@ + + + + + + +Field Service - CRM + + + +
+

Field Service - CRM

+ + +

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

+

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

+ +
+

Installation

+

To install Field Service and have the mapping features, you need to install GeoEngine.

+

Please refer to the installation instructions available at: +https://github.com/OCA/geospatial/tree/12.0/base_geoengine

+
+
+

Configuration

+

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.

+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Patrick Wilson
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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 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_crm/views/fsm_location.xml b/fieldservice_crm/views/fsm_location.xml index cb86893eec..44c0abd114 100644 --- a/fieldservice_crm/views/fsm_location.xml +++ b/fieldservice_crm/views/fsm_location.xml @@ -14,7 +14,7 @@ groups="sales_team.group_sale_salesman" context="{'search_default_fsm_location_id': active_id, 'default_fsm_location_id': active_id}"> - + From 7891b589a39ced91031f0c704a54f16918fd5b4a Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Fri, 11 Oct 2019 12:13:04 -0500 Subject: [PATCH 05/48] [FIX] fieldservice_crm --- fieldservice_crm/__manifest__.py | 2 +- fieldservice_crm/i18n/fieldservice_crm.pot | 65 ++++++++++++++++++++++ fieldservice_crm/models/crm_lead.py | 2 +- fieldservice_crm/models/fsm_location.py | 2 +- 4 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 fieldservice_crm/i18n/fieldservice_crm.pot diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index 964b3a2eeb..8ea4a41a3e 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Field Service - CRM', 'version': '12.0.1.0.1', - 'summary': 'CRM Opportunity integration for Field Service', + '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', diff --git a/fieldservice_crm/i18n/fieldservice_crm.pot b/fieldservice_crm/i18n/fieldservice_crm.pot new file mode 100644 index 0000000000..754d7db24c --- /dev/null +++ b/fieldservice_crm/i18n/fieldservice_crm.pot @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_crm +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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 "" + diff --git a/fieldservice_crm/models/crm_lead.py b/fieldservice_crm/models/crm_lead.py index b70330e825..e9ff67831c 100644 --- a/fieldservice_crm/models/crm_lead.py +++ b/fieldservice_crm/models/crm_lead.py @@ -11,7 +11,7 @@ class Lead(models.Model): string='Service Orders') fsm_location_id = fields.Many2one('fsm.location', string='FSM Location') fsm_order_count = fields.Integer(compute='_compute_fsm_order_count', - string='FS Orders') + string='# FSM Orders') @api.multi def _compute_fsm_order_count(self): diff --git a/fieldservice_crm/models/fsm_location.py b/fieldservice_crm/models/fsm_location.py index cfe52b8e4d..09524f93b3 100644 --- a/fieldservice_crm/models/fsm_location.py +++ b/fieldservice_crm/models/fsm_location.py @@ -8,7 +8,7 @@ class FSMLocation(models.Model): _inherit = 'fsm.location' opportunity_count = fields.Integer(compute='_compute_opportunity_count', - string='Opportunities') + string='# Opportunities') @api.multi def _compute_opportunity_count(self): From 5afbe0112fa414fc7b162d0c7652652738a67ced Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Thu, 21 Nov 2019 15:21:14 +0000 Subject: [PATCH 06/48] Added translation using Weblate (Portuguese (Brazil)) --- fieldservice_crm/i18n/pt_BR.po | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 fieldservice_crm/i18n/pt_BR.po diff --git a/fieldservice_crm/i18n/pt_BR.po b/fieldservice_crm/i18n/pt_BR.po new file mode 100644 index 0000000000..5779402d8f --- /dev/null +++ b/fieldservice_crm/i18n/pt_BR.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_crm +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: pt_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" + +#. 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 "" From 3f31ab1cb51d3e37f86e61bff05019ec1d49943e Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Fri, 22 Nov 2019 13:18:56 +0000 Subject: [PATCH 07/48] Added translation using Weblate (German) --- fieldservice_crm/i18n/de.po | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 fieldservice_crm/i18n/de.po diff --git a/fieldservice_crm/i18n/de.po b/fieldservice_crm/i18n/de.po new file mode 100644 index 0000000000..9c958a6263 --- /dev/null +++ b/fieldservice_crm/i18n/de.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_crm +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: 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" + +#. 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 "" From 37dbbd47a18b6dc2c5001b9faad0af6cb8fbd498 Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Fri, 22 Nov 2019 13:40:45 +0000 Subject: [PATCH 08/48] Translated using Weblate (German) Currently translated at 10.0% (1 of 10 strings) Translation: field-service-12.0/field-service-12.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm/de/ --- fieldservice_crm/i18n/de.po | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fieldservice_crm/i18n/de.po b/fieldservice_crm/i18n/de.po index 9c958a6263..7e5275c4af 100644 --- a/fieldservice_crm/i18n/de.po +++ b/fieldservice_crm/i18n/de.po @@ -6,13 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2019-11-22 16:35+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_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count @@ -22,7 +24,7 @@ msgstr "" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count msgid "# Opportunities" -msgstr "" +msgstr "# Verkaufschancen" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view From 40f93782d85d1295771e20749ac0d370755fdd2b Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Tue, 26 Nov 2019 09:55:00 +0000 Subject: [PATCH 09/48] Translated using Weblate (German) Currently translated at 20.0% (2 of 10 strings) Translation: field-service-12.0/field-service-12.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm/de/ --- fieldservice_crm/i18n/de.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fieldservice_crm/i18n/de.po b/fieldservice_crm/i18n/de.po index 7e5275c4af..bad88fa7b4 100644 --- a/fieldservice_crm/i18n/de.po +++ b/fieldservice_crm/i18n/de.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-11-22 16:35+0000\n" +"PO-Revision-Date: 2019-11-26 11:58+0000\n" "Last-Translator: Maria Sparenberg \n" "Language-Team: none\n" "Language: de\n" @@ -44,7 +44,7 @@ msgstr "" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_order msgid "Field Service Order" -msgstr "" +msgstr "Field-Service-Auftrag" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead From 163f9cfc3445fc051b85c9debebcd7c1899c467a Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Tue, 26 Nov 2019 13:04:03 +0000 Subject: [PATCH 10/48] Translated using Weblate (German) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-12.0/field-service-12.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm/de/ --- fieldservice_crm/i18n/de.po | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fieldservice_crm/i18n/de.po b/fieldservice_crm/i18n/de.po index bad88fa7b4..426b1a4d19 100644 --- a/fieldservice_crm/i18n/de.po +++ b/fieldservice_crm/i18n/de.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-11-26 11:58+0000\n" +"PO-Revision-Date: 2019-11-26 14:27+0000\n" "Last-Translator: Maria Sparenberg \n" "Language-Team: none\n" "Language: de\n" @@ -19,7 +19,7 @@ msgstr "" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count msgid "# FSM Orders" -msgstr "" +msgstr "# Service-Auftr??ge" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count @@ -29,17 +29,17 @@ msgstr "# Verkaufschancen" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" -msgstr "" +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 "" +msgstr "Field-Service-Ort" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location msgid "Field Service Location" -msgstr "" +msgstr "Field-Service-Ort" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_order @@ -49,19 +49,19 @@ msgstr "Field-Service-Auftrag" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Interessent / Chance" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view msgid "Opportunities" -msgstr "" +msgstr "Verkaufschancen" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id msgid "Opportunity" -msgstr "" +msgstr "Verkaufschance" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" -msgstr "" +msgstr "Service-Auftr??ge" From e143460a3fd5d995dc842bd2c2bac369c301f5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Ram=C3=ADrez=20S=C3=A1nchez?= Date: Thu, 16 Jan 2020 22:20:15 +0000 Subject: [PATCH 11/48] Added translation using Weblate (Spanish (Chile)) --- fieldservice_crm/i18n/es_CL.po | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 fieldservice_crm/i18n/es_CL.po diff --git a/fieldservice_crm/i18n/es_CL.po b/fieldservice_crm/i18n/es_CL.po new file mode 100644 index 0000000000..ac6a9b6e63 --- /dev/null +++ b/fieldservice_crm/i18n/es_CL.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_crm +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: 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" + +#. 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 "" From 9db0f3869ead4895d61fd4e1fd77929eeebc71a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Ram=C3=ADrez=20S=C3=A1nchez?= Date: Thu, 16 Jan 2020 22:20:35 +0000 Subject: [PATCH 12/48] Translated using Weblate (Spanish (Chile)) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-12.0/field-service-12.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm/es_CL/ --- fieldservice_crm/i18n/es_CL.po | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fieldservice_crm/i18n/es_CL.po b/fieldservice_crm/i18n/es_CL.po index ac6a9b6e63..23238f75e3 100644 --- a/fieldservice_crm/i18n/es_CL.po +++ b/fieldservice_crm/i18n/es_CL.po @@ -6,60 +6,62 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2020-01-16 22:38+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.10\n" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count msgid "# FSM Orders" -msgstr "" +msgstr "# Pedidos FSM" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count msgid "# Opportunities" -msgstr "" +msgstr "# Oportunidades" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" -msgstr "" +msgstr "??rdenes FS" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id msgid "FSM Location" -msgstr "" +msgstr "Ubicaci??n FSM" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location msgid "Field Service Location" -msgstr "" +msgstr "Ubicaci??n del servicio de campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_order msgid "Field Service Order" -msgstr "" +msgstr "Orden de Servicio de Campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Iniciativa/Oportunidad" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view msgid "Opportunities" -msgstr "" +msgstr "Oportunidades" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id msgid "Opportunity" -msgstr "" +msgstr "Oportunidad" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" -msgstr "" +msgstr "??rdenes de Servicio" From 4586e22b0dbb7d4c1535fb4a1600cf7f632b8dc6 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Wed, 5 Feb 2020 20:58:09 +0000 Subject: [PATCH 13/48] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-12.0/field-service-12.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm/pt_BR/ --- fieldservice_crm/i18n/pt_BR.po | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fieldservice_crm/i18n/pt_BR.po b/fieldservice_crm/i18n/pt_BR.po index 5779402d8f..5b7b18f9a3 100644 --- a/fieldservice_crm/i18n/pt_BR.po +++ b/fieldservice_crm/i18n/pt_BR.po @@ -6,60 +6,62 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2020-02-05 22:13+0000\n" +"Last-Translator: Marcel Savegnago \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_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count msgid "# FSM Orders" -msgstr "" +msgstr "# Ordens FSM" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count msgid "# Opportunities" -msgstr "" +msgstr "# Oportunidades" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" -msgstr "" +msgstr "Ordens FS" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id msgid "FSM Location" -msgstr "" +msgstr "Localiza????o do FSM" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location msgid "Field Service Location" -msgstr "" +msgstr "Localiza????o do Servi??o de Campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_order msgid "Field Service Order" -msgstr "" +msgstr "Ordem de Servi??o de Campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Prospecto/Oportunidade" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view msgid "Opportunities" -msgstr "" +msgstr "Oportunidades" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id msgid "Opportunity" -msgstr "" +msgstr "Oportunidade" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" -msgstr "" +msgstr "Ordens de Servi??o" From 4f8e2732ae8bc4c0d6e426d1d06c90e74c96ecf9 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Fri, 3 Apr 2020 17:36:33 -0600 Subject: [PATCH 14/48] [FIX] fieldservice_crm: Access rights --- fieldservice_crm/security/ir.model.access.csv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fieldservice_crm/security/ir.model.access.csv b/fieldservice_crm/security/ir.model.access.csv index f803ca7882..fa88ed2f41 100644 --- a/fieldservice_crm/security/ir.model.access.csv +++ b/fieldservice_crm/security/ir.model.access.csv @@ -1,2 +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,model_fsm_order,base.group_user,1,0,0,0 +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 From 4838d8406b604067b3ebc461fec5f5ff8199ef7f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 4 Apr 2020 09:47:35 +0000 Subject: [PATCH 15/48] fieldservice_crm 12.0.1.1.0 --- fieldservice_crm/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index 8ea4a41a3e..2fa4b25662 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'Field Service - CRM', - 'version': '12.0.1.0.1', + 'version': '12.0.1.1.0', 'summary': 'Create Field Service orders from the CRM', 'category': 'Field Service', 'author': 'Patrick Wilson, Odoo Community Association (OCA)', From 6d477bc0473f9a924dd6f657050207f0353e6f1a Mon Sep 17 00:00:00 2001 From: Fernando Colus Date: Wed, 17 Jun 2020 19:53:40 +0000 Subject: [PATCH 16/48] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-12.0/field-service-12.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_crm/pt_BR/ --- fieldservice_crm/i18n/pt_BR.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fieldservice_crm/i18n/pt_BR.po b/fieldservice_crm/i18n/pt_BR.po index 5b7b18f9a3..45a79da2cc 100644 --- a/fieldservice_crm/i18n/pt_BR.po +++ b/fieldservice_crm/i18n/pt_BR.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-02-05 22:13+0000\n" -"Last-Translator: Marcel Savegnago \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" @@ -34,7 +34,7 @@ msgstr "Ordens FS" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id msgid "FSM Location" -msgstr "Localiza????o do FSM" +msgstr "Localiza????o do FSM (Field Service Management)" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location From 421106709296f9a456f6fe0a89bcc2eb6a94216a Mon Sep 17 00:00:00 2001 From: brian10048 Date: Mon, 20 Jul 2020 15:44:11 -0400 Subject: [PATCH 17/48] [IMP] fieldservice_crm: black, isort, prettier --- fieldservice_crm/__manifest__.py | 37 +- fieldservice_crm/models/crm_lead.py | 19 +- fieldservice_crm/models/fsm_location.py | 12 +- fieldservice_crm/models/fsm_order.py | 7 +- fieldservice_crm/readme/DESCRIPTION.rst | 2 +- .../static/description/index.html | 1138 ++++++++++------- fieldservice_crm/views/crm_lead.xml | 40 +- fieldservice_crm/views/fsm_location.xml | 24 +- fieldservice_crm/views/fsm_order.xml | 13 +- 9 files changed, 792 insertions(+), 500 deletions(-) diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index 2fa4b25662..addae6d814 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -2,26 +2,21 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Field Service - CRM', - 'version': '12.0.1.1.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', + "name": "Field Service - CRM", + "version": "12.0.1.1.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", ], - '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, + "license": "AGPL-3", + "development_status": "Beta", + "maintainers": ["patrickrwilson"], + "installable": True, } diff --git a/fieldservice_crm/models/crm_lead.py b/fieldservice_crm/models/crm_lead.py index e9ff67831c..4a5cc4504c 100644 --- a/fieldservice_crm/models/crm_lead.py +++ b/fieldservice_crm/models/crm_lead.py @@ -5,16 +5,19 @@ class Lead(models.Model): - _inherit = 'crm.lead' + _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') + 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" + ) @api.multi def _compute_fsm_order_count(self): for opportunity in self: - opportunity.fsm_order_count = self.env['fsm.order'].search_count( - [('opportunity_id', '=', opportunity.id)]) + opportunity.fsm_order_count = self.env["fsm.order"].search_count( + [("opportunity_id", "=", opportunity.id)] + ) diff --git a/fieldservice_crm/models/fsm_location.py b/fieldservice_crm/models/fsm_location.py index 09524f93b3..8f47e91523 100644 --- a/fieldservice_crm/models/fsm_location.py +++ b/fieldservice_crm/models/fsm_location.py @@ -5,13 +5,15 @@ class FSMLocation(models.Model): - _inherit = 'fsm.location' + _inherit = "fsm.location" - opportunity_count = fields.Integer(compute='_compute_opportunity_count', - string='# Opportunities') + opportunity_count = fields.Integer( + compute="_compute_opportunity_count", string="# Opportunities" + ) @api.multi 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)]) + fsm_location.opportunity_count = self.env["crm.lead"].search_count( + [("fsm_location_id", "=", fsm_location.id)] + ) diff --git a/fieldservice_crm/models/fsm_order.py b/fieldservice_crm/models/fsm_order.py index 5af9f8d274..20f9d07b2f 100644 --- a/fieldservice_crm/models/fsm_order.py +++ b/fieldservice_crm/models/fsm_order.py @@ -5,7 +5,8 @@ class FSMOrder(models.Model): - _inherit = 'fsm.order' + _inherit = "fsm.order" - opportunity_id = fields.Many2one('crm.lead', string='Opportunity', - track_visibility='onchange') + opportunity_id = fields.Many2one( + "crm.lead", string="Opportunity", track_visibility="onchange" + ) diff --git a/fieldservice_crm/readme/DESCRIPTION.rst b/fieldservice_crm/readme/DESCRIPTION.rst index 1bd00eaac3..42f4a25630 100644 --- a/fieldservice_crm/readme/DESCRIPTION.rst +++ b/fieldservice_crm/readme/DESCRIPTION.rst @@ -1,3 +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. +evaluation or surveying before quoting. diff --git a/fieldservice_crm/static/description/index.html b/fieldservice_crm/static/description/index.html index fa305e8923..516eaedff6 100644 --- a/fieldservice_crm/static/description/index.html +++ b/fieldservice_crm/static/description/index.html @@ -1,13 +1,15 @@ - - - -Field Service - CRM - - - -
-

Field Service - CRM

- - -

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

-

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

- -
-

Installation

-

To install Field Service and have the mapping features, you need to install GeoEngine.

-

Please refer to the installation instructions available at: -https://github.com/OCA/geospatial/tree/12.0/base_geoengine

-
-
-

Configuration

-

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.

-
-
-

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 smashing it by providing a detailed and welcomed -feedback.

-

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

-
-
-

Credits

-
-

Authors

-
    -
  • Patrick Wilson
  • -
-
- -
-

Other credits

-

The development of this module has been financially supported by:

- -
-
-

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

-
-
-
- +

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

+

+ 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

+
+ +
+
+

Installation

+

+ To install Field Service and have the mapping features, you need to install + GeoEngine. +

+

+ Please refer to the installation instructions available at: + https://github.com/OCA/geospatial/tree/12.0/base_geoengine +

+
+
+

Configuration

+

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. +

+
+
+

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 smashing it by providing a detailed + and welcomed + feedback. +

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Patrick Wilson
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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 + 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_crm/views/crm_lead.xml b/fieldservice_crm/views/crm_lead.xml index d24a820cde..6b90632e63 100644 --- a/fieldservice_crm/views/crm_lead.xml +++ b/fieldservice_crm/views/crm_lead.xml @@ -1,47 +1,53 @@ - fieldservice.crm.form crm.lead - - - + + + - - + fieldservice.crm.list crm.lead - + - + crm.fieldservice.search crm.lead - + - + diff --git a/fieldservice_crm/views/fsm_location.xml b/fieldservice_crm/views/fsm_location.xml index 44c0abd114..1096db77b6 100644 --- a/fieldservice_crm/views/fsm_location.xml +++ b/fieldservice_crm/views/fsm_location.xml @@ -1,20 +1,26 @@ - fsm.location.crm.form fsm.location - +
-
diff --git a/fieldservice_crm/views/fsm_order.xml b/fieldservice_crm/views/fsm_order.xml index c782ac913d..e91d14ff1d 100644 --- a/fieldservice_crm/views/fsm_order.xml +++ b/fieldservice_crm/views/fsm_order.xml @@ -1,34 +1,33 @@ - fsm.order.crm.list fsm.order - + - + fsm.order.crm.form fsm.order - + - + fsm.order.crm.search fsm.order - + - + From ff0e0a8cfa4a98044c63513192a75a366667aa6e Mon Sep 17 00:00:00 2001 From: brian10048 Date: Mon, 20 Jul 2020 15:54:38 -0400 Subject: [PATCH 18/48] [MIG] fieldservice_crm: Migration to 13.0 --- fieldservice_crm/__init__.py | 2 +- fieldservice_crm/__manifest__.py | 4 ++-- fieldservice_crm/models/__init__.py | 2 +- fieldservice_crm/models/crm_lead.py | 5 ++--- fieldservice_crm/models/fsm_location.py | 5 ++--- fieldservice_crm/models/fsm_order.py | 2 +- fieldservice_crm/readme/INSTALL.rst | 2 +- fieldservice_crm/views/crm_lead.xml | 2 +- 8 files changed, 11 insertions(+), 13 deletions(-) diff --git a/fieldservice_crm/__init__.py b/fieldservice_crm/__init__.py index 9b6783efce..53ddf854f5 100644 --- a/fieldservice_crm/__init__.py +++ b/fieldservice_crm/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 - TODAY, Patrick Wilson +# Copyright (C) 2019, Patrick Wilson # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index addae6d814..af8f497ffd 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -1,9 +1,9 @@ -# Copyright (C) 2019 - TODAY, Patrick Wilson +# Copyright (C) 2019, Patrick Wilson # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Field Service - CRM", - "version": "12.0.1.1.0", + "version": "13.0.1.0.0", "summary": "Create Field Service orders from the CRM", "category": "Field Service", "author": "Patrick Wilson, Odoo Community Association (OCA)", diff --git a/fieldservice_crm/models/__init__.py b/fieldservice_crm/models/__init__.py index bfbb6262ff..a81051ecd9 100644 --- a/fieldservice_crm/models/__init__.py +++ b/fieldservice_crm/models/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 - TODAY, Patrick Wilson +# Copyright (C) 2019, Patrick Wilson # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import crm_lead diff --git a/fieldservice_crm/models/crm_lead.py b/fieldservice_crm/models/crm_lead.py index 4a5cc4504c..f11ade7976 100644 --- a/fieldservice_crm/models/crm_lead.py +++ b/fieldservice_crm/models/crm_lead.py @@ -1,7 +1,7 @@ -# Copyright (C) 2019 - TODAY, Patrick Wilson +# Copyright (C) 2019, Patrick Wilson # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, fields, models +from odoo import fields, models class Lead(models.Model): @@ -15,7 +15,6 @@ class Lead(models.Model): compute="_compute_fsm_order_count", string="# FSM Orders" ) - @api.multi def _compute_fsm_order_count(self): for opportunity in self: opportunity.fsm_order_count = self.env["fsm.order"].search_count( diff --git a/fieldservice_crm/models/fsm_location.py b/fieldservice_crm/models/fsm_location.py index 8f47e91523..f0a34e10b3 100644 --- a/fieldservice_crm/models/fsm_location.py +++ b/fieldservice_crm/models/fsm_location.py @@ -1,7 +1,7 @@ -# Copyright (C) 2019 - TODAY, Patrick Wilson +# Copyright (C) 2019, Patrick Wilson # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, fields, models +from odoo import fields, models class FSMLocation(models.Model): @@ -11,7 +11,6 @@ class FSMLocation(models.Model): compute="_compute_opportunity_count", string="# Opportunities" ) - @api.multi def _compute_opportunity_count(self): for fsm_location in self: fsm_location.opportunity_count = self.env["crm.lead"].search_count( diff --git a/fieldservice_crm/models/fsm_order.py b/fieldservice_crm/models/fsm_order.py index 20f9d07b2f..da773c5018 100644 --- a/fieldservice_crm/models/fsm_order.py +++ b/fieldservice_crm/models/fsm_order.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 - TODAY, Patrick Wilson +# Copyright (C) 2019, Patrick Wilson # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/fieldservice_crm/readme/INSTALL.rst b/fieldservice_crm/readme/INSTALL.rst index 8571f65376..e5355c4b0f 100644 --- a/fieldservice_crm/readme/INSTALL.rst +++ b/fieldservice_crm/readme/INSTALL.rst @@ -1,4 +1,4 @@ To install Field Service and have the mapping features, you need to install GeoEngine. Please refer to the installation instructions available at: -https://github.com/OCA/geospatial/tree/12.0/base_geoengine +https://github.com/OCA/geospatial/tree/13.0/base_geoengine diff --git a/fieldservice_crm/views/crm_lead.xml b/fieldservice_crm/views/crm_lead.xml index 6b90632e63..48db4cd066 100644 --- a/fieldservice_crm/views/crm_lead.xml +++ b/fieldservice_crm/views/crm_lead.xml @@ -4,7 +4,7 @@ fieldservice.crm.form crm.lead - + From 46e49bccd7177397d9d11d542667e862a301374e Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 29 Jul 2020 21:19:17 +0000 Subject: [PATCH 19/48] [UPD] Update fieldservice_crm.pot --- fieldservice_crm/i18n/fieldservice_crm.pot | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fieldservice_crm/i18n/fieldservice_crm.pot b/fieldservice_crm/i18n/fieldservice_crm.pot index 754d7db24c..832c4fa024 100644 --- a/fieldservice_crm/i18n/fieldservice_crm.pot +++ b/fieldservice_crm/i18n/fieldservice_crm.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * fieldservice_crm +# * fieldservice_crm # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -62,4 +62,3 @@ msgstr "" #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" msgstr "" - From 02eb11af45e2b2def2209836182bb131e6b96f6a Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 29 Jul 2020 21:24:37 +0000 Subject: [PATCH 20/48] [UPD] README.rst --- fieldservice_crm/README.rst | 14 +- .../static/description/index.html | 1138 +++++++---------- 2 files changed, 436 insertions(+), 716 deletions(-) diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 10eeff5377..3e66665d9e 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -14,20 +14,20 @@ Field Service - CRM :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github - :target: https://github.com/OCA/field-service/tree/12.0/fieldservice_crm + :target: https://github.com/OCA/field-service/tree/13.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-12-0/field-service-12-0-fieldservice_crm + :target: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice_crm :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/264/12.0 + :target: https://runbot.odoo-community.org/runbot/264/13.0 :alt: Try me on Runbot |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. +evaluation or surveying before quoting. **Table of contents** @@ -40,7 +40,7 @@ Installation To install Field Service and have the mapping features, you need to install GeoEngine. Please refer to the installation instructions available at: -https://github.com/OCA/geospatial/tree/12.0/base_geoengine +https://github.com/OCA/geospatial/tree/13.0/base_geoengine Configuration ============= @@ -68,7 +68,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -113,6 +113,6 @@ Current `maintainer `__: |maintainer-patrickrwilson| -This module is part of the `OCA/field-service `_ project on GitHub. +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_crm/static/description/index.html b/fieldservice_crm/static/description/index.html index 516eaedff6..45a7ccdbcb 100644 --- a/fieldservice_crm/static/description/index.html +++ b/fieldservice_crm/static/description/index.html @@ -1,15 +1,13 @@ - - - - Field Service - CRM - - - -
-

Field Service - CRM

- - -

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

-

- 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

-
- -
-
-

Installation

-

- To install Field Service and have the mapping features, you need to install - GeoEngine. -

-

- Please refer to the installation instructions available at: - https://github.com/OCA/geospatial/tree/12.0/base_geoengine -

-
-
-

Configuration

-

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

-
-
-

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 smashing it by providing a detailed - and welcomed - feedback. -

-

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

-
-
-

Credits

-
-

Authors

-
    -
  • Patrick Wilson
  • -
-
-
-

Contributors

- -
-
-

Other credits

-

The development of this module has been financially supported by:

- -
-
-

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

-
-
-
- +

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

+

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

+ +
+

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.

+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Patrick Wilson
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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

+
+
+ + From 1a1be6fdc094b0b9b35dcdd2bffbc68bcee36655 Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Tue, 27 Apr 2021 17:59:01 +0000 Subject: [PATCH 21/48] Added translation using Weblate (Spanish (Argentina)) --- fieldservice_crm/i18n/es_AR.po | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 fieldservice_crm/i18n/es_AR.po diff --git a/fieldservice_crm/i18n/es_AR.po b/fieldservice_crm/i18n/es_AR.po new file mode 100644 index 0000000000..acac85b8d0 --- /dev/null +++ b/fieldservice_crm/i18n/es_AR.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fieldservice_crm +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\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" + +#. 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 "" From 5b9d390f3bef2216e41e2d0dc25fab6016845e45 Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Tue, 27 Apr 2021 18:01:08 +0000 Subject: [PATCH 22/48] Translated using Weblate (Spanish (Argentina)) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-13.0/field-service-13.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice_crm/es_AR/ --- fieldservice_crm/i18n/es_AR.po | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fieldservice_crm/i18n/es_AR.po b/fieldservice_crm/i18n/es_AR.po index acac85b8d0..c29b14ed4e 100644 --- a/fieldservice_crm/i18n/es_AR.po +++ b/fieldservice_crm/i18n/es_AR.po @@ -6,60 +6,62 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-04-27 20:47+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.3.2\n" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count msgid "# FSM Orders" -msgstr "" +msgstr "# Pedidos FSM" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count msgid "# Opportunities" -msgstr "" +msgstr "# Oportunidades" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" -msgstr "" +msgstr "Pedidos FS" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id msgid "FSM Location" -msgstr "" +msgstr "Ubicación FSM" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location msgid "Field Service Location" -msgstr "" +msgstr "Ubicación del Servicio de Campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_order msgid "Field Service Order" -msgstr "" +msgstr "Pedido de Servicio de Campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Iniciativa/Oportunidad" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view msgid "Opportunities" -msgstr "" +msgstr "Oportunidades" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id msgid "Opportunity" -msgstr "" +msgstr "Oportunidad" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" -msgstr "" +msgstr "Órdenes de Servicio" From 2099ccebf1bfbf58a963e6f772c2cdb89c9c2fb2 Mon Sep 17 00:00:00 2001 From: Chanakya Soni Date: Fri, 4 Jun 2021 11:21:39 +0530 Subject: [PATCH 23/48] [14.0][MIG] fieldservice_crm. --- fieldservice_crm/README.rst | 1 + fieldservice_crm/__manifest__.py | 2 +- fieldservice_crm/i18n/de.po | 2 +- fieldservice_crm/i18n/es_AR.po | 2 +- fieldservice_crm/i18n/es_CL.po | 2 +- fieldservice_crm/i18n/fieldservice_crm.pot | 2 +- fieldservice_crm/i18n/pt_BR.po | 2 +- fieldservice_crm/models/fsm_order.py | 4 +--- 8 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 3e66665d9e..01f323d7eb 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -84,6 +84,7 @@ Contributors ~~~~~~~~~~~~ * Patrick Wilson +* Chanakya Soni Other credits ~~~~~~~~~~~~~ diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index af8f497ffd..c1e976117a 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Field Service - CRM", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "summary": "Create Field Service orders from the CRM", "category": "Field Service", "author": "Patrick Wilson, Odoo Community Association (OCA)", diff --git a/fieldservice_crm/i18n/de.po b/fieldservice_crm/i18n/de.po index 426b1a4d19..7d9da2f920 100644 --- a/fieldservice_crm/i18n/de.po +++ b/fieldservice_crm/i18n/de.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"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 \n" diff --git a/fieldservice_crm/i18n/es_AR.po b/fieldservice_crm/i18n/es_AR.po index c29b14ed4e..a0ffbd3045 100644 --- a/fieldservice_crm/i18n/es_AR.po +++ b/fieldservice_crm/i18n/es_AR.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"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 \n" diff --git a/fieldservice_crm/i18n/es_CL.po b/fieldservice_crm/i18n/es_CL.po index 23238f75e3..f546bb1a75 100644 --- a/fieldservice_crm/i18n/es_CL.po +++ b/fieldservice_crm/i18n/es_CL.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"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 \n" diff --git a/fieldservice_crm/i18n/fieldservice_crm.pot b/fieldservice_crm/i18n/fieldservice_crm.pot index 832c4fa024..8b9fa93e60 100644 --- a/fieldservice_crm/i18n/fieldservice_crm.pot +++ b/fieldservice_crm/i18n/fieldservice_crm.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/fieldservice_crm/i18n/pt_BR.po b/fieldservice_crm/i18n/pt_BR.po index 45a79da2cc..202cd71daa 100644 --- a/fieldservice_crm/i18n/pt_BR.po +++ b/fieldservice_crm/i18n/pt_BR.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2020-06-17 22:19+0000\n" "Last-Translator: Fernando Colus \n" diff --git a/fieldservice_crm/models/fsm_order.py b/fieldservice_crm/models/fsm_order.py index da773c5018..0c0689b641 100644 --- a/fieldservice_crm/models/fsm_order.py +++ b/fieldservice_crm/models/fsm_order.py @@ -7,6 +7,4 @@ class FSMOrder(models.Model): _inherit = "fsm.order" - opportunity_id = fields.Many2one( - "crm.lead", string="Opportunity", track_visibility="onchange" - ) + opportunity_id = fields.Many2one("crm.lead", string="Opportunity", tracking=True) From c56693e2cd1db29bd9d6eb73086113150970e3c8 Mon Sep 17 00:00:00 2001 From: Chanakya Soni Date: Fri, 4 Jun 2021 12:25:02 +0530 Subject: [PATCH 24/48] [IMP]Added test cases. --- fieldservice_crm/tests/__init__.py | 1 + fieldservice_crm/tests/test_fsm_crm.py | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 fieldservice_crm/tests/__init__.py create mode 100644 fieldservice_crm/tests/test_fsm_crm.py diff --git a/fieldservice_crm/tests/__init__.py b/fieldservice_crm/tests/__init__.py new file mode 100644 index 0000000000..8d259282cb --- /dev/null +++ b/fieldservice_crm/tests/__init__.py @@ -0,0 +1 @@ +from . import test_fsm_crm diff --git a/fieldservice_crm/tests/test_fsm_crm.py b/fieldservice_crm/tests/test_fsm_crm.py new file mode 100644 index 0000000000..a0df5707af --- /dev/null +++ b/fieldservice_crm/tests/test_fsm_crm.py @@ -0,0 +1,24 @@ +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, + }) + fsm_order = 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) From 0a200dc277bb7a4e468e960d768d047df7540999 Mon Sep 17 00:00:00 2001 From: Chanakya Soni Date: Tue, 8 Jun 2021 14:18:35 +0530 Subject: [PATCH 25/48] [IMP]pre-commit checks. --- fieldservice_crm/tests/test_fsm_crm.py | 30 +++++++++++++++----------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/fieldservice_crm/tests/test_fsm_crm.py b/fieldservice_crm/tests/test_fsm_crm.py index a0df5707af..9d76869fc2 100644 --- a/fieldservice_crm/tests/test_fsm_crm.py +++ b/fieldservice_crm/tests/test_fsm_crm.py @@ -3,20 +3,26 @@ 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"] + 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, - }) - fsm_order = self.env["fsm.order"].create({ - "location_id": location_1.id, - "opportunity_id": crm_1.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) From a6e2ba71f0601fe4cec9f60b5879a5d14b62b2d9 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Tue, 8 Jun 2021 17:36:34 +0000 Subject: [PATCH 26/48] [UPD] Update fieldservice_crm.pot --- fieldservice_crm/i18n/fieldservice_crm.pot | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/fieldservice_crm/i18n/fieldservice_crm.pot b/fieldservice_crm/i18n/fieldservice_crm.pot index 8b9fa93e60..5b58b191e3 100644 --- a/fieldservice_crm/i18n/fieldservice_crm.pot +++ b/fieldservice_crm/i18n/fieldservice_crm.pot @@ -23,6 +23,12 @@ msgstr "" msgid "# Opportunities" msgstr "" +#. module: fieldservice_crm +#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__display_name +#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__display_name +msgid "Display Name" +msgstr "" + #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" @@ -43,6 +49,20 @@ msgstr "" msgid "Field Service Order" msgstr "" +#. module: fieldservice_crm +#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__id +#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__id +#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__id +msgid "ID" +msgstr "" + +#. module: fieldservice_crm +#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead____last_update +#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location____last_update +#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order____last_update +msgid "Last Modified on" +msgstr "" + #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" @@ -58,6 +78,11 @@ msgstr "" msgid "Opportunity" msgstr "" +#. module: fieldservice_crm +#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__display_name +msgid "Order" +msgstr "" + #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" From 4612fe77b871325f7dca5fdc4600dad2ff066cb5 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 8 Jun 2021 18:14:16 +0000 Subject: [PATCH 27/48] [UPD] README.rst --- fieldservice_crm/README.rst | 11 +++++------ fieldservice_crm/static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 01f323d7eb..479adaab31 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -14,13 +14,13 @@ Field Service - CRM :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/13.0/fieldservice_crm + :target: https://github.com/OCA/field-service/tree/14.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-13-0/field-service-13-0-fieldservice_crm + :target: https://translation.odoo-community.org/projects/field-service-14-0/field-service-14-0-fieldservice_crm :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/264/13.0 + :target: https://runbot.odoo-community.org/runbot/264/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -68,7 +68,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -84,7 +84,6 @@ Contributors ~~~~~~~~~~~~ * Patrick Wilson -* Chanakya Soni Other credits ~~~~~~~~~~~~~ @@ -114,6 +113,6 @@ Current `maintainer `__: |maintainer-patrickrwilson| -This module is part of the `OCA/field-service `_ project on GitHub. +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_crm/static/description/index.html b/fieldservice_crm/static/description/index.html index 45a7ccdbcb..70b4350028 100644 --- a/fieldservice_crm/static/description/index.html +++ b/fieldservice_crm/static/description/index.html @@ -367,7 +367,7 @@

Field Service - CRM

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

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.

@@ -418,7 +418,7 @@

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -451,7 +451,7 @@

Maintainers

promote its widespread use.

Current maintainer:

patrickrwilson

-

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

+

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.

From cb0380a961b23fb7724fd140792f3e1477e1c66c Mon Sep 17 00:00:00 2001 From: Eder Brito Date: Tue, 8 Jun 2021 19:57:32 +0000 Subject: [PATCH 28/48] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-14.0/field-service-14.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-14-0/field-service-14-0-fieldservice_crm/pt_BR/ --- fieldservice_crm/i18n/pt_BR.po | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fieldservice_crm/i18n/pt_BR.po b/fieldservice_crm/i18n/pt_BR.po index 202cd71daa..39ed2ad5b2 100644 --- a/fieldservice_crm/i18n/pt_BR.po +++ b/fieldservice_crm/i18n/pt_BR.po @@ -6,20 +6,20 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-06-17 22:19+0000\n" -"Last-Translator: Fernando Colus \n" +"PO-Revision-Date: 2021-06-08 21:48+0000\n" +"Last-Translator: Eder Brito \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" +"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 FSM" +msgstr "# Ordens de Serviço" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count @@ -29,27 +29,27 @@ msgstr "# Oportunidades" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" -msgstr "Ordens FS" +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 "Localiza????o do FSM (Field Service Management)" +msgstr "Local de GSC" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location msgid "Field Service Location" -msgstr "Localiza????o do Servi??o de Campo" +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" +msgstr "Ordem de Serviço de Campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" -msgstr "Prospecto/Oportunidade" +msgstr "Lead/Oportunidade" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view @@ -64,4 +64,4 @@ 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" +msgstr "Ordens de Serviço" From a7a79c3c4495f5557223bd829b22f5812f10b071 Mon Sep 17 00:00:00 2001 From: Vimal Patel Date: Wed, 1 Sep 2021 17:26:02 +0530 Subject: [PATCH 29/48] [14.0][FIX]fieldservice_crm: Service Location Field not showing up on Opportunities --- fieldservice_crm/views/crm_lead.xml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fieldservice_crm/views/crm_lead.xml b/fieldservice_crm/views/crm_lead.xml index 48db4cd066..fd04613a2f 100644 --- a/fieldservice_crm/views/crm_lead.xml +++ b/fieldservice_crm/views/crm_lead.xml @@ -26,9 +26,18 @@ /> - + - + + + +
From 92d26e131b1b2448d05e15ded8a716cf6d0c4217 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 7 Sep 2021 17:19:15 +0000 Subject: [PATCH 30/48] fieldservice_crm 14.0.1.1.0 --- fieldservice_crm/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index c1e976117a..c3509d7d11 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Field Service - CRM", - "version": "14.0.1.0.0", + "version": "14.0.1.1.0", "summary": "Create Field Service orders from the CRM", "category": "Field Service", "author": "Patrick Wilson, Odoo Community Association (OCA)", From 54c3013f8302b562fd35f9fa47ff57a5d5a2d376 Mon Sep 17 00:00:00 2001 From: Freni Patel Date: Thu, 13 Jan 2022 17:23:51 +0530 Subject: [PATCH 31/48] [15.0][FIX] Fixed travis --- fieldservice_crm/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index c3509d7d11..c754492d94 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Field Service - CRM", - "version": "14.0.1.1.0", + "version": "15.0.1.0.0", "summary": "Create Field Service orders from the CRM", "category": "Field Service", "author": "Patrick Wilson, Odoo Community Association (OCA)", From 600477cca4b1773b638b499edd55c1875a2ea0a3 Mon Sep 17 00:00:00 2001 From: Freni Patel Date: Thu, 13 Jan 2022 18:34:55 +0530 Subject: [PATCH 32/48] [15.0][MIG] fieldservice_crm --- fieldservice_crm/README.rst | 9 +++++---- fieldservice_crm/readme/CONTRIBUTORS.rst | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 479adaab31..92d1201b8a 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -14,13 +14,13 @@ Field Service - CRM :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/14.0/fieldservice_crm + :target: https://github.com/OCA/field-service/tree/15.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-14-0/field-service-14-0-fieldservice_crm :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/264/14.0 + :target: https://runbot.odoo-community.org/runbot/264/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -68,7 +68,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -84,6 +84,7 @@ Contributors ~~~~~~~~~~~~ * Patrick Wilson +* Freni Patel Other credits ~~~~~~~~~~~~~ @@ -113,6 +114,6 @@ Current `maintainer `__: |maintainer-patrickrwilson| -This module is part of the `OCA/field-service `_ project on GitHub. +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_crm/readme/CONTRIBUTORS.rst b/fieldservice_crm/readme/CONTRIBUTORS.rst index 4f895601b0..7e58aa1a2d 100644 --- a/fieldservice_crm/readme/CONTRIBUTORS.rst +++ b/fieldservice_crm/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Patrick Wilson +* Freni Patel From 3171ad0b65eb4f7886ea73636fe98573fc5ca5fb Mon Sep 17 00:00:00 2001 From: oca-ci Date: Thu, 20 Oct 2022 10:41:47 +0000 Subject: [PATCH 33/48] [UPD] Update fieldservice_crm.pot --- fieldservice_crm/i18n/fieldservice_crm.pot | 27 +--------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/fieldservice_crm/i18n/fieldservice_crm.pot b/fieldservice_crm/i18n/fieldservice_crm.pot index 5b58b191e3..fd809d9df8 100644 --- a/fieldservice_crm/i18n/fieldservice_crm.pot +++ b/fieldservice_crm/i18n/fieldservice_crm.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -23,12 +23,6 @@ msgstr "" msgid "# Opportunities" msgstr "" -#. module: fieldservice_crm -#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__display_name -#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__display_name -msgid "Display Name" -msgstr "" - #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" @@ -49,20 +43,6 @@ msgstr "" msgid "Field Service Order" msgstr "" -#. module: fieldservice_crm -#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__id -#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__id -#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__id -msgid "ID" -msgstr "" - -#. module: fieldservice_crm -#: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead____last_update -#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location____last_update -#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order____last_update -msgid "Last Modified on" -msgstr "" - #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" @@ -78,11 +58,6 @@ msgstr "" msgid "Opportunity" msgstr "" -#. module: fieldservice_crm -#: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__display_name -msgid "Order" -msgstr "" - #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" From 11bb68085faa376ff4e012f2d9afda401c958ad3 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 20 Oct 2022 10:43:58 +0000 Subject: [PATCH 34/48] [UPD] README.rst --- fieldservice_crm/README.rst | 2 +- fieldservice_crm/static/description/index.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fieldservice_crm/README.rst b/fieldservice_crm/README.rst index 92d1201b8a..31db63fb17 100644 --- a/fieldservice_crm/README.rst +++ b/fieldservice_crm/README.rst @@ -17,7 +17,7 @@ Field Service - CRM :target: https://github.com/OCA/field-service/tree/15.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-14-0/field-service-14-0-fieldservice_crm + :target: https://translation.odoo-community.org/projects/field-service-15-0/field-service-15-0-fieldservice_crm :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png :target: https://runbot.odoo-community.org/runbot/264/15.0 diff --git a/fieldservice_crm/static/description/index.html b/fieldservice_crm/static/description/index.html index 70b4350028..32f54ccf01 100644 --- a/fieldservice_crm/static/description/index.html +++ b/fieldservice_crm/static/description/index.html @@ -367,7 +367,7 @@

Field Service - CRM

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

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.

@@ -418,7 +418,7 @@

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -433,6 +433,7 @@

Authors

Contributors

@@ -451,7 +452,7 @@

Maintainers

promote its widespread use.

Current maintainer:

patrickrwilson

-

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

+

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.

From 7e34dc190df0f79330a68667b0efc85444fdd353 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 20 Oct 2022 11:10:01 +0000 Subject: [PATCH 35/48] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: field-service-15.0/field-service-15.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-15-0/field-service-15-0-fieldservice_crm/ --- fieldservice_crm/i18n/de.po | 2 +- fieldservice_crm/i18n/es_CL.po | 2 +- fieldservice_crm/i18n/pt_BR.po | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fieldservice_crm/i18n/de.po b/fieldservice_crm/i18n/de.po index 7d9da2f920..c9bb9591b6 100644 --- a/fieldservice_crm/i18n/de.po +++ b/fieldservice_crm/i18n/de.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * fieldservice_crm +# * fieldservice_crm # msgid "" msgstr "" diff --git a/fieldservice_crm/i18n/es_CL.po b/fieldservice_crm/i18n/es_CL.po index f546bb1a75..c76a036a08 100644 --- a/fieldservice_crm/i18n/es_CL.po +++ b/fieldservice_crm/i18n/es_CL.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * fieldservice_crm +# * fieldservice_crm # msgid "" msgstr "" diff --git a/fieldservice_crm/i18n/pt_BR.po b/fieldservice_crm/i18n/pt_BR.po index 39ed2ad5b2..9c0e495df9 100644 --- a/fieldservice_crm/i18n/pt_BR.po +++ b/fieldservice_crm/i18n/pt_BR.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * fieldservice_crm +# * fieldservice_crm # msgid "" msgstr "" From 352a869b702b41f0ef59a508c7807b72b0605a13 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 27 Oct 2022 11:05:11 +0000 Subject: [PATCH 36/48] Added translation using Weblate (Italian) --- fieldservice_crm/i18n/it.po | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 fieldservice_crm/i18n/it.po diff --git a/fieldservice_crm/i18n/it.po b/fieldservice_crm/i18n/it.po new file mode 100644 index 0000000000..f1a3452192 --- /dev/null +++ b/fieldservice_crm/i18n/it.po @@ -0,0 +1,65 @@ +# 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" +"Last-Translator: Automatically generated\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" + +#. 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 "" From 694fe72283b9bca6518ec6fcac620a88a9a93604 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 27 Oct 2022 11:05:21 +0000 Subject: [PATCH 37/48] Translated using Weblate (Italian) Currently translated at 100.0% (10 of 10 strings) Translation: field-service-15.0/field-service-15.0-fieldservice_crm Translate-URL: https://translation.odoo-community.org/projects/field-service-15-0/field-service-15-0-fieldservice_crm/it/ --- fieldservice_crm/i18n/it.po | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fieldservice_crm/i18n/it.po b/fieldservice_crm/i18n/it.po index f1a3452192..6c6aff88d2 100644 --- a/fieldservice_crm/i18n/it.po +++ b/fieldservice_crm/i18n/it.po @@ -6,60 +6,62 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2022-10-27 13: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_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_count msgid "# FSM Orders" -msgstr "" +msgstr "N° ordine FSM" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_location__opportunity_count msgid "# Opportunities" -msgstr "" +msgstr "N° opportunità" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fieldservice_crm_form_view msgid "FS Orders" -msgstr "" +msgstr "Ordini FS" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_location_id msgid "FSM Location" -msgstr "" +msgstr "Località FSM" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_location msgid "Field Service Location" -msgstr "" +msgstr "Località assistenza sul campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_fsm_order msgid "Field Service Order" -msgstr "" +msgstr "Ordine assistenza sul campo" #. module: fieldservice_crm #: model:ir.model,name:fieldservice_crm.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Contatto/opportunità" #. module: fieldservice_crm #: model_terms:ir.ui.view,arch_db:fieldservice_crm.fsm_location_crm_form_view msgid "Opportunities" -msgstr "" +msgstr "Opportunità" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_fsm_order__opportunity_id msgid "Opportunity" -msgstr "" +msgstr "Opportunità" #. module: fieldservice_crm #: model:ir.model.fields,field_description:fieldservice_crm.field_crm_lead__fsm_order_ids msgid "Service Orders" -msgstr "" +msgstr "Ordini servizio" From e40bf7e96fce9a89b327e5c4fc4ad38c9bf4bbf2 Mon Sep 17 00:00:00 2001 From: Goncalo Brito Date: Fri, 28 Oct 2022 09:22:29 +0200 Subject: [PATCH 38/48] [MIG] fieldservice_crm: Migration to 16.0 --- fieldservice_crm/__manifest__.py | 2 +- fieldservice_crm/models/crm_lead.py | 6 ++---- fieldservice_crm/models/fsm_order.py | 2 +- fieldservice_crm/views/crm_lead.xml | 1 - 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/fieldservice_crm/__manifest__.py b/fieldservice_crm/__manifest__.py index c754492d94..5064aab070 100644 --- a/fieldservice_crm/__manifest__.py +++ b/fieldservice_crm/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Field Service - CRM", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "summary": "Create Field Service orders from the CRM", "category": "Field Service", "author": "Patrick Wilson, Odoo Community Association (OCA)", diff --git a/fieldservice_crm/models/crm_lead.py b/fieldservice_crm/models/crm_lead.py index f11ade7976..181dcb0c37 100644 --- a/fieldservice_crm/models/crm_lead.py +++ b/fieldservice_crm/models/crm_lead.py @@ -16,7 +16,5 @@ class Lead(models.Model): ) def _compute_fsm_order_count(self): - for opportunity in self: - opportunity.fsm_order_count = self.env["fsm.order"].search_count( - [("opportunity_id", "=", opportunity.id)] - ) + for rec in self: + rec.fsm_order_count = len(rec.fsm_order_ids) diff --git a/fieldservice_crm/models/fsm_order.py b/fieldservice_crm/models/fsm_order.py index 0c0689b641..98c060ec50 100644 --- a/fieldservice_crm/models/fsm_order.py +++ b/fieldservice_crm/models/fsm_order.py @@ -7,4 +7,4 @@ class FSMOrder(models.Model): _inherit = "fsm.order" - opportunity_id = fields.Many2one("crm.lead", string="Opportunity", tracking=True) + opportunity_id = fields.Many2one("crm.lead", tracking=True) diff --git a/fieldservice_crm/views/crm_lead.xml b/fieldservice_crm/views/crm_lead.xml index fd04613a2f..8e049b5fc5 100644 --- a/fieldservice_crm/views/crm_lead.xml +++ b/fieldservice_crm/views/crm_lead.xml @@ -6,7 +6,6 @@ crm.lead -