diff --git a/contract_fieldservice/README.rst b/contract_fieldservice/README.rst new file mode 100644 index 00000000..9c68c38d --- /dev/null +++ b/contract_fieldservice/README.rst @@ -0,0 +1,84 @@ +===================== +Contract Fieldservice +===================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/12.0/contract_fieldservice + :alt: OCA/contract +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract_fieldservice + :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/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to set a service location on each line of the contract. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +* Go to Accounting > Customers > Contracts +* Create or select a contract +* Edit it to set the "Service To" on the lines +* Go to Sales +* Create or select a quotation +* Select the customer and contract to filter the list of "Service Location" + +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 +~~~~~~~~~~~~ + +* Maxime Chambreuil +* Serpent Consulting Services Pvt. Ltd. + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +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/contract_fieldservice/__init__.py b/contract_fieldservice/__init__.py new file mode 100644 index 00000000..e87e85c4 --- /dev/null +++ b/contract_fieldservice/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import models diff --git a/contract_fieldservice/__manifest__.py b/contract_fieldservice/__manifest__.py new file mode 100644 index 00000000..51a8ce0d --- /dev/null +++ b/contract_fieldservice/__manifest__.py @@ -0,0 +1,25 @@ +# Copyright (C) 2019 Open Source Integrators +# Copyright (C) 2019 Serpent Consulting Services +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +{ + 'name': 'Contract Fieldservice', + 'version': '12.0.1.0.0', + 'category': 'Fieldservice', + 'summary': 'This module allows you to set a service ' + 'location on each line of the contract.', + 'author': 'Open Source Integrators, ' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/contract', + 'depends': [ + 'contract_sale_invoicing', + 'fieldservice_sale', + ], + 'data': [ + 'views/contract_line.xml', + 'views/sale_view.xml' + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': True, +} diff --git a/contract_fieldservice/models/__init__.py b/contract_fieldservice/models/__init__.py new file mode 100644 index 00000000..767c863a --- /dev/null +++ b/contract_fieldservice/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import contract_line diff --git a/contract_fieldservice/models/contract_line.py b/contract_fieldservice/models/contract_line.py new file mode 100644 index 00000000..6e6dd4b5 --- /dev/null +++ b/contract_fieldservice/models/contract_line.py @@ -0,0 +1,10 @@ +# Copyright (C) 2019 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ContractLine(models.Model): + _inherit = 'contract.line' + + fsm_location_id = fields.Many2one('fsm.location', 'Service To') diff --git a/contract_fieldservice/readme/CONTRIBUTORS.rst b/contract_fieldservice/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..64881b41 --- /dev/null +++ b/contract_fieldservice/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Maxime Chambreuil +* Serpent Consulting Services Pvt. Ltd. diff --git a/contract_fieldservice/readme/DESCRIPTION.rst b/contract_fieldservice/readme/DESCRIPTION.rst new file mode 100644 index 00000000..0d94a840 --- /dev/null +++ b/contract_fieldservice/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows you to set a service location on each line of the contract. diff --git a/contract_fieldservice/readme/USAGE.rst b/contract_fieldservice/readme/USAGE.rst new file mode 100644 index 00000000..c3d5153a --- /dev/null +++ b/contract_fieldservice/readme/USAGE.rst @@ -0,0 +1,6 @@ +* Go to Accounting > Customers > Contracts +* Create or select a contract +* Edit it to set the "Service To" on the lines +* Go to Sales +* Create or select a quotation +* Select the customer and contract to filter the list of "Service Location" diff --git a/contract_fieldservice/static/description/icon.png b/contract_fieldservice/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/contract_fieldservice/static/description/icon.png differ diff --git a/contract_fieldservice/static/description/index.html b/contract_fieldservice/static/description/index.html new file mode 100644 index 00000000..017f3351 --- /dev/null +++ b/contract_fieldservice/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +Contract Fieldservice + + + +
+

Contract Fieldservice

+ + +

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

+

This module allows you to set a service location on each line of the contract.

+

Table of contents

+ +
+

Usage

+
    +
  • Go to Accounting > Customers > Contracts
  • +
  • Create or select a contract
  • +
  • Edit it to set the “Service To” on the lines
  • +
  • Go to Sales
  • +
  • Create or select a quotation
  • +
  • Select the customer and contract to filter the list of “Service Location”
  • +
+
+
+

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

+ +
+
+

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.

+

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/contract_fieldservice/views/contract_line.xml b/contract_fieldservice/views/contract_line.xml new file mode 100644 index 00000000..7ed87eb1 --- /dev/null +++ b/contract_fieldservice/views/contract_line.xml @@ -0,0 +1,14 @@ + + + + contract.line form view (in contract) + contract.line + + + + + + + + + diff --git a/contract_fieldservice/views/sale_view.xml b/contract_fieldservice/views/sale_view.xml new file mode 100644 index 00000000..b4b44c20 --- /dev/null +++ b/contract_fieldservice/views/sale_view.xml @@ -0,0 +1,14 @@ + + + + sale.order.form + sale.order + + + + [('contract_ids', 'in', parent.contract_id)] + + + + + diff --git a/oca_dependencies.txt b/oca_dependencies.txt index d7f9e901..89012782 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1,3 +1,3 @@ bank-payment +field-service queue -