diff --git a/.travis.yml b/.travis.yml index 683e8cf2..4c3767a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,14 +6,12 @@ python: - "3.5" addons: - postgresql: "9.6" apt: # only add the two lines below if you need wkhtmltopdf for your tests # sources: # - pov-wkhtmltopdf packages: - expect-dev # provides unbuffer utility - - postgresql-9.6-postgis-2.3 postgis # because travis doesn't know which one to install - python-lxml # because pip installation is slow - python-simplejson - python-serial diff --git a/agreement_fsm/README.rst b/agreement_fsm/README.rst deleted file mode 100644 index 3fe782cd..00000000 --- a/agreement_fsm/README.rst +++ /dev/null @@ -1,109 +0,0 @@ -============== -FSM Agreements -============== - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! 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%2Fcontract-lightgray.png?logo=github - :target: https://github.com/OCA/contract/tree/11.0/agreement_fsm - :alt: OCA/contract -.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-agreement_fsm - :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/110/11.0 - :alt: Try me on Runbot - -|badge1| |badge2| |badge3| |badge4| |badge5| - -Odoo Agreement App does not provide an easy way to access field service orders -related to an agreement. Some organizations needs to have a quick access to -field service orders to track the performance of an agreement. - -This module allows you to link a field service order to an agreement and adds a -smart button on the agreement to look at the list of related field service -orders. - -**Table of contents** - -.. contents:: - :local: - -Usage -===== - -To use this module: - -* Go to Field Service > Operations > Orders -* Select or create a field service order and set the agreement -* Go to Agreement > Agreements -* Open the previous agreement -* Click on the smart button "Service Orders" to see the list of related field - service orders - -Bug Tracker -=========== - -Bugs are tracked on `GitHub Issues `_. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* Bhavesh Odedra - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Open Source Integrators - -Maintainers -~~~~~~~~~~~ - -This module is maintained by the OCA. - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px - :target: https://github.com/max3903 - :alt: max3903 -.. |maintainer-bodedra| image:: https://github.com/bodedra.png?size=40px - :target: https://github.com/bodedra - :alt: bodedra - -Current `maintainers `__: - -|maintainer-max3903| |maintainer-bodedra| - -This module is part of the `OCA/contract `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/agreement_fsm/__init__.py b/agreement_fsm/__init__.py deleted file mode 100644 index 631bd489..00000000 --- a/agreement_fsm/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (C) 2018 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from . import models diff --git a/agreement_fsm/__manifest__.py b/agreement_fsm/__manifest__.py deleted file mode 100644 index 05fbf38a..00000000 --- a/agreement_fsm/__manifest__.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2018 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -{ - "name": "FSM Agreements", - "summary": "Manage FSM Agreements", - "author": "Open Source Integrators, " - "Odoo Community Association (OCA)", - "website": "https://github.com/OCA/contract", - "category": "Partner", - "license": "AGPL-3", - "version": "11.0.1.0.0", - "depends": [ - "fieldservice", - "agreement", - ], - "data": [ - "views/agreement_view.xml", - "views/fsm_order_view.xml", - ], - "application": True, - "development_status": "Beta", - "maintainers": ["max3903", "bodedra"], -} diff --git a/agreement_fsm/i18n/agreement_fsm.pot b/agreement_fsm/i18n/agreement_fsm.pot deleted file mode 100644 index 8dca093f..00000000 --- a/agreement_fsm/i18n/agreement_fsm.pot +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * agreement_fsm -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 11.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: agreement_fsm -#: model:ir.model.fields,field_description:agreement_fsm.field_agreement_service_order_count -msgid "# Service Orders" -msgstr "" - -#. module: agreement_fsm -#: model:ir.model.fields,field_description:agreement_fsm.field_fsm_order_agreement_id -msgid "Agreement" -msgstr "" - -#. module: agreement_fsm -#: model:ir.model,name:agreement_fsm.model_fsm_order -msgid "Field Service Order" -msgstr "" - -#. module: agreement_fsm -#: model:ir.ui.view,arch_db:agreement_fsm.agreement_fsm_order_form_view -msgid "Service Orders" -msgstr "" - -#. module: agreement_fsm -#: model:ir.model,name:agreement_fsm.model_agreement -msgid "agreement" -msgstr "" - diff --git a/agreement_fsm/models/__init__.py b/agreement_fsm/models/__init__.py deleted file mode 100644 index a8787cb0..00000000 --- a/agreement_fsm/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from . import fsm_order -from . import agreement diff --git a/agreement_fsm/models/agreement.py b/agreement_fsm/models/agreement.py deleted file mode 100644 index 2cbd6216..00000000 --- a/agreement_fsm/models/agreement.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (C) 2018 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models, api - - -class Agreement(models.Model): - _inherit = 'agreement' - - service_order_count = fields.Integer( - compute='_compute_service_order_count', - string='# Service Orders' - ) - - @api.multi - def _compute_service_order_count(self): - for agreement in self: - res = self.env['fsm.order'].search_count( - [('agreement_id', '=', agreement.id)]) - agreement.service_order_count = res or 0 - - @api.multi - def action_view_service_order(self): - for agreement in self: - fsm_order_ids = self.env['fsm.order'].search( - [('agreement_id', '=', agreement.id)]) - action = self.env.ref( - 'fieldservice.action_fsm_operation_order').read()[0] - if len(fsm_order_ids) > 1: - action['domain'] = [('id', 'in', fsm_order_ids.ids)] - elif len(fsm_order_ids) == 1: - action['views'] = [( - self.env.ref('fieldservice.fsm_order_form').id, - 'form')] - action['res_id'] = fsm_order_ids.ids[0] - else: - action = {'type': 'ir.actions.act_window_close'} - return action diff --git a/agreement_fsm/models/fsm_order.py b/agreement_fsm/models/fsm_order.py deleted file mode 100644 index 88c923cd..00000000 --- a/agreement_fsm/models/fsm_order.py +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2018 - TODAY, Open Source Integrators -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields - -from odoo.addons.base_geoengine import geo_model - - -class FSMOrder(geo_model.GeoModel): - _inherit = 'fsm.order' - - agreement_id = fields.Many2one('agreement', string='Agreement') diff --git a/agreement_fsm/readme/CONFIGURE.rst b/agreement_fsm/readme/CONFIGURE.rst deleted file mode 100644 index e69de29b..00000000 diff --git a/agreement_fsm/readme/CONTRIBUTORS.rst b/agreement_fsm/readme/CONTRIBUTORS.rst deleted file mode 100644 index 567f85bd..00000000 --- a/agreement_fsm/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Bhavesh Odedra diff --git a/agreement_fsm/readme/CREDITS.rst b/agreement_fsm/readme/CREDITS.rst deleted file mode 100644 index 8209266d..00000000 --- a/agreement_fsm/readme/CREDITS.rst +++ /dev/null @@ -1,3 +0,0 @@ -The development of this module has been financially supported by: - -* Open Source Integrators diff --git a/agreement_fsm/readme/DESCRIPTION.rst b/agreement_fsm/readme/DESCRIPTION.rst deleted file mode 100644 index 715fea45..00000000 --- a/agreement_fsm/readme/DESCRIPTION.rst +++ /dev/null @@ -1,7 +0,0 @@ -Odoo Agreement App does not provide an easy way to access field service orders -related to an agreement. Some organizations needs to have a quick access to -field service orders to track the performance of an agreement. - -This module allows you to link a field service order to an agreement and adds a -smart button on the agreement to look at the list of related field service -orders. diff --git a/agreement_fsm/readme/ROADMAP.rst b/agreement_fsm/readme/ROADMAP.rst deleted file mode 100644 index e69de29b..00000000 diff --git a/agreement_fsm/readme/USAGE.rst b/agreement_fsm/readme/USAGE.rst deleted file mode 100644 index 66cebd33..00000000 --- a/agreement_fsm/readme/USAGE.rst +++ /dev/null @@ -1,8 +0,0 @@ -To use this module: - -* Go to Field Service > Operations > Orders -* Select or create a field service order and set the agreement -* Go to Agreement > Agreements -* Open the previous agreement -* Click on the smart button "Service Orders" to see the list of related field - service orders diff --git a/agreement_fsm/static/description/icon.png b/agreement_fsm/static/description/icon.png deleted file mode 100644 index 3a0328b5..00000000 Binary files a/agreement_fsm/static/description/icon.png and /dev/null differ diff --git a/agreement_fsm/static/description/index.html b/agreement_fsm/static/description/index.html deleted file mode 100644 index bc75bb6a..00000000 --- a/agreement_fsm/static/description/index.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - -FSM Agreements - - - -
-

FSM Agreements

- - -

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

-

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

-

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

-

Table of contents

- -
-

Usage

-

To use this module:

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

Bug Tracker

-

Bugs are tracked on GitHub Issues. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

-

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

-
-
-

Credits

-
-

Authors

-
    -
  • Open Source Integrators
  • -
-
- -
-

Other credits

-

The development of this module has been financially supported by:

-
    -
  • Open Source Integrators
  • -
-
-
-

Maintainers

-

This module is maintained by the OCA.

-Odoo Community Association -

OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use.

-

Current maintainers:

-

max3903 bodedra

-

This module is part of the OCA/contract project on GitHub.

-

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

-
-
-
- - diff --git a/agreement_fsm/views/agreement_view.xml b/agreement_fsm/views/agreement_view.xml deleted file mode 100644 index 5ae94d69..00000000 --- a/agreement_fsm/views/agreement_view.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - agreement.form.fsm.order.view - agreement - - -
- -
-
-
-
diff --git a/agreement_fsm/views/fsm_order_view.xml b/agreement_fsm/views/fsm_order_view.xml deleted file mode 100644 index b6fe7d95..00000000 --- a/agreement_fsm/views/fsm_order_view.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - fsm.order.agreement.form - fsm.order - - - - - - - - diff --git a/oca_dependencies.txt b/oca_dependencies.txt index 9beb8079..34f82ae9 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1,2 +1 @@ bank-payment -field-service