From 0a9bdc0d76d9f3957af1e5bb7124be722ae5841f Mon Sep 17 00:00:00 2001 From: Bhavesh Odedra Date: Fri, 26 Oct 2018 22:55:31 +0530 Subject: [PATCH 01/10] [ADD] agreement_maintenance --- agreement_maintenance/README.rst | 129 ++++++++++++++++++ agreement_maintenance/__init__.py | 4 + agreement_maintenance/__manifest__.py | 29 ++++ agreement_maintenance/models/__init__.py | 7 + agreement_maintenance/models/agreement.py | 15 ++ .../models/agreement_serviceprofile.py | 40 ++++++ .../models/product_template.py | 14 ++ agreement_maintenance/readme/CONFIGURE.rst | 6 + agreement_maintenance/readme/CONTRIBUTORS.rst | 4 + agreement_maintenance/readme/CREDITS.rst | 4 + agreement_maintenance/readme/DESCRIPTION.rst | 1 + agreement_maintenance/readme/USAGE.rst | 7 + .../security/ir.model.access.csv | 3 + .../static/description/icon.png | Bin 0 -> 6755 bytes agreement_maintenance/views/agreement.xml | 27 ++++ .../views/agreement_serviceprofile.xml | 63 +++++++++ agreement_maintenance/views/menu.xml | 11 ++ agreement_maintenance/views/product.xml | 17 +++ 18 files changed, 381 insertions(+) create mode 100644 agreement_maintenance/README.rst create mode 100644 agreement_maintenance/__init__.py create mode 100644 agreement_maintenance/__manifest__.py create mode 100644 agreement_maintenance/models/__init__.py create mode 100644 agreement_maintenance/models/agreement.py create mode 100644 agreement_maintenance/models/agreement_serviceprofile.py create mode 100644 agreement_maintenance/models/product_template.py create mode 100644 agreement_maintenance/readme/CONFIGURE.rst create mode 100644 agreement_maintenance/readme/CONTRIBUTORS.rst create mode 100644 agreement_maintenance/readme/CREDITS.rst create mode 100644 agreement_maintenance/readme/DESCRIPTION.rst create mode 100644 agreement_maintenance/readme/USAGE.rst create mode 100644 agreement_maintenance/security/ir.model.access.csv create mode 100644 agreement_maintenance/static/description/icon.png create mode 100644 agreement_maintenance/views/agreement.xml create mode 100644 agreement_maintenance/views/agreement_serviceprofile.xml create mode 100644 agreement_maintenance/views/menu.xml create mode 100644 agreement_maintenance/views/product.xml diff --git a/agreement_maintenance/README.rst b/agreement_maintenance/README.rst new file mode 100644 index 00000000..6b72ce28 --- /dev/null +++ b/agreement_maintenance/README.rst @@ -0,0 +1,129 @@ +========== +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 + :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 + :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| + +This module allows you to manage agreements, letter of intent and contract content. +The module is meant to be used by the legal team of a company and to allow them +to define sections, clauses and templates with their respective content that can +be dynamic. + +Based on the template, an agreement can be created and the pdf document generated. + +The agreement would go through a workflow to finally become a contract with the +customer signature. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module: + +* Go to Agreement > Configuration > Templates +* Create a new template with sections and clauses and their respective content +* Go to Agreement > Configuration > Stages +* Create and reorder stages to match your process + +Usage +===== + +To use this module: + +* Go to Agreement > Agrements +* Create a new agreement +* Select a template +* Follow the process to get the required approval +* Send the invitation to the customer to review and sign the agreement + +Known issues / Roadmap +====================== + +* Split the module to remove the dependencies on sale and account and provide + the same feature in extra modules (agreement_sale, agreement_account, + agreement_purchase) + +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 +~~~~~~~ + +* Pavlov Media +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Patrick Wilson +* Bhavesh Odedra +* Wolfgang Hall +* Maxime Chambreuil + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Pavlov Media +* 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 + +Current `maintainer `__: + +|maintainer-max3903| + +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_maintenance/__init__.py b/agreement_maintenance/__init__.py new file mode 100644 index 00000000..073035d1 --- /dev/null +++ b/agreement_maintenance/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/agreement_maintenance/__manifest__.py b/agreement_maintenance/__manifest__.py new file mode 100644 index 00000000..9e06b6e8 --- /dev/null +++ b/agreement_maintenance/__manifest__.py @@ -0,0 +1,29 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Maintenance Agreements', + 'summary': 'Manage maintenance agreements and contracts', + 'author': 'Pavlov Media, ' + 'Open Source Integrators, ' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/contract', + 'category': 'Partner', + 'license': 'AGPL-3', + 'version': '11.0.0.0.1', + 'depends': [ + 'agreement', + 'maintenance', + 'fieldservice', + ], + 'data': [ + 'security/ir.model.access.csv', + 'views/agreement.xml', + 'views/agreement_serviceprofile.xml', + 'views/product.xml', + 'views/menu.xml', + ], + 'application': False, + 'development_status': 'Beta', + 'maintainers': ['max3903'], +} diff --git a/agreement_maintenance/models/__init__.py b/agreement_maintenance/models/__init__.py new file mode 100644 index 00000000..e8d8eb66 --- /dev/null +++ b/agreement_maintenance/models/__init__.py @@ -0,0 +1,7 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import ( + agreement, + product_template, + agreement_serviceprofile, +) diff --git a/agreement_maintenance/models/agreement.py b/agreement_maintenance/models/agreement.py new file mode 100644 index 00000000..4c77838d --- /dev/null +++ b/agreement_maintenance/models/agreement.py @@ -0,0 +1,15 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class Agreement(models.Model): + _inherit = 'agreement' + + serviceprofile_ids = fields.One2many( + 'agreement.serviceprofile', + 'agreement_id', + string="Service Profile", + copy=True + ) diff --git a/agreement_maintenance/models/agreement_serviceprofile.py b/agreement_maintenance/models/agreement_serviceprofile.py new file mode 100644 index 00000000..99c6adf0 --- /dev/null +++ b/agreement_maintenance/models/agreement_serviceprofile.py @@ -0,0 +1,40 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +PROFILE_TYPE = [ + ('equipment', 'Equipment'), + ('product', 'Product') +] + + +class AgreementServiceProfile(models.Model): + _name = 'agreement.serviceprofile' + + name = fields.Char(string="Name", required=True) + profile_type = fields.Selection( + PROFILE_TYPE, + string="Profile Type") + description = fields.Text(string="Description") + equipment_id = fields.Many2one( + 'maintenance.equipment', + string="Equipment") + product_id = fields.Many2one( + 'product.product', + string="Product", + domain=[('serviceprofile_ok', '=', True)]) + equipment_category_id = fields.Many2one( + 'maintenance.equipment.category', + related='equipment_id.category_id', + string="Equipment Category", + readonly=1) + agreement_id = fields.Many2one( + 'agreement', + string="Agreement", + ondelete="cascade", + required=True) + fsm_location_id = fields.Many2one( + 'fsm.location', + string="Service Location") diff --git a/agreement_maintenance/models/product_template.py b/agreement_maintenance/models/product_template.py new file mode 100644 index 00000000..51de3a2b --- /dev/null +++ b/agreement_maintenance/models/product_template.py @@ -0,0 +1,14 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields + + +class Product(models.Model): + _inherit = 'product.template' + + serviceprofile_ok = fields.Boolean( + string='Include on Service Profile', + default=False, + help="Specify if the product can be selected in a service profile line" + ) diff --git a/agreement_maintenance/readme/CONFIGURE.rst b/agreement_maintenance/readme/CONFIGURE.rst new file mode 100644 index 00000000..3871fc34 --- /dev/null +++ b/agreement_maintenance/readme/CONFIGURE.rst @@ -0,0 +1,6 @@ +To configure this module: + +* Go to Agreement > Configuration > Templates +* Create a new template with sections and clauses and their respective content +* Go to Agreement > Configuration > Stages +* Create and reorder stages to match your process diff --git a/agreement_maintenance/readme/CONTRIBUTORS.rst b/agreement_maintenance/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..4e2eb061 --- /dev/null +++ b/agreement_maintenance/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Patrick Wilson +* Bhavesh Odedra +* Wolfgang Hall +* Maxime Chambreuil diff --git a/agreement_maintenance/readme/CREDITS.rst b/agreement_maintenance/readme/CREDITS.rst new file mode 100644 index 00000000..0543afe7 --- /dev/null +++ b/agreement_maintenance/readme/CREDITS.rst @@ -0,0 +1,4 @@ +The development of this module has been financially supported by: + +* Pavlov Media +* Open Source Integrators diff --git a/agreement_maintenance/readme/DESCRIPTION.rst b/agreement_maintenance/readme/DESCRIPTION.rst new file mode 100644 index 00000000..020bfcbb --- /dev/null +++ b/agreement_maintenance/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows you to manage maintenance agreements and contracts. diff --git a/agreement_maintenance/readme/USAGE.rst b/agreement_maintenance/readme/USAGE.rst new file mode 100644 index 00000000..0eb52e5a --- /dev/null +++ b/agreement_maintenance/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module: + +* Go to Agreement > Agrements +* Create a new agreement +* Select a template +* Follow the process to get the required approval +* Send the invitation to the customer to review and sign the agreement diff --git a/agreement_maintenance/security/ir.model.access.csv b/agreement_maintenance/security/ir.model.access.csv new file mode 100644 index 00000000..8e45456f --- /dev/null +++ b/agreement_maintenance/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_agreement_serviceprofile_allusers,serviceprofile all users,model_agreement_serviceprofile,agreement.group_agreement_user,1,0,0,0 +access_agreement_serviceprofile_manager,serviceprofile manager,model_agreement_serviceprofile,agreement.group_agreement_manager,1,1,1,1 diff --git a/agreement_maintenance/static/description/icon.png b/agreement_maintenance/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..23ce93135053c48a74469807879f2805b12382ad GIT binary patch literal 6755 zcmV-p8l2^cP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vG&=l}pD=mCOb1snhX8Td&=K~#8N-CKFQ zBvp0(s=Io9`)n{X!YCjrLL4@uLLx?^7>Nlg;0OWKpNe}Tf-$lvB8s2}{h8qK3&9P6 zA)<*}0!9po;{xiS0)rw5Gt55ky?(Ek>Z-1M-??>PSHF1!0kiLh2wasDW7Mv0M0u zAiRJ^rHqA4zG5Ljk*y(xm+2{|26%Krt8`xQhXRsC)@DI(@bcpppYg!>v;++1pP(b zB62H-0kN3ksaS zR}aWD)l0;!XGCohU_SQS-CoR|NhIdH`PiGAGavhN=hn!rHy`_k8N??N6qOqcfEdVw zYK|$D#GZf7Gu%fHdYr?({Mo+@_XY!NOCXPXgWMR+(PN&k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jFD4W|Y9MIOpwOarCwJn~Q;tS6o<>5I>g#cBAqngi;E^9DxClyk zy+%`EpT*4X&G_g^hoiydgl6J`q)Z0%^;sZ|iV-_s*_EoF!pj51@H_>W_t-^5!jq)l zIH@KcI7hjCi4DD2w^V@>))c@oDxEUKHx*2ttMxiATz4l%#ulSg8$qkS3_)cGagjMe zMY#Y~PCk|2%V6?c^8ia<$&j{yk|4eM2^e5{;9WfKAfzG`MI)Z!FMQfCPXz`XqCgI% z?*h&3C7j79+p?bR~!Gtq|H&EY!0ST(6H8_VwOLkeSnlgioS-oQA}qt+B;g@JzL@;O!O!#kbt5Cu@>3 zS<+fqT3;rZR!J31OzTb&Zea)6D2~r0BDg2lL)Q8e{9r+D5n0lMoig^MPqjNE^@p$~ zA*EpQsO-|sm$$h-H_Mt#5ek~-3H)dAM(BPGo=xN;4yg!flKaQ@u9aDx3+q{^aUN|P z(adDlAp^=S6kt`xZoZ+OJ^D6V+pS@*p;B*!1Qrt*G`%M}58wz5vH-@4Tto(AicN#)*iZ~mu;Cdk z)Xj^Q)v@V!mIvEw^UyT!=aR5T`%b|WCdK#B+?GNKxxj+x`wdk$;^Nm1$4qMH8M-N^ zl0gBIt{&SlPM&0JodR0G5#~Ha{~TDLQlFVosJi|Qj(aSywHJT^&zJ||$;!Qu+1uQK z@iH8ZotBskyO+;?2zG`Ek5i zvg+&nlgn#KZ+$6E?+eZC%}qsz9U5e4ooq9$s&r_58NvK`17FFZmdPtYgbn#DvgT#> z=cX7@Ln)9&hOY2*`>1yDC3zL)J=%Qst5nT^)&7 + + + + + Agreement Form + agreement + + + + + + + + + + + + + + + + + + + diff --git a/agreement_maintenance/views/agreement_serviceprofile.xml b/agreement_maintenance/views/agreement_serviceprofile.xml new file mode 100644 index 00000000..b0339c21 --- /dev/null +++ b/agreement_maintenance/views/agreement_serviceprofile.xml @@ -0,0 +1,63 @@ + + + + + + Agreement Service Profile List + agreement.serviceprofile + + + + + + + + + + + + + + + Agreement Service Profile Form + agreement.serviceprofile + +
+ +
+

+ +

+
+ + + + + + + + + + + + + + +
+
+
+
+ + + + Agreement Service Profile + agreement.serviceprofile + tree,form + + +
diff --git a/agreement_maintenance/views/menu.xml b/agreement_maintenance/views/menu.xml new file mode 100644 index 00000000..acf8af5f --- /dev/null +++ b/agreement_maintenance/views/menu.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/agreement_maintenance/views/product.xml b/agreement_maintenance/views/product.xml new file mode 100644 index 00000000..4c2be246 --- /dev/null +++ b/agreement_maintenance/views/product.xml @@ -0,0 +1,17 @@ + + + + + product.template.common.serviceprofile.ok.form + product.template + + +
+
+ +
+
+
+
+
From 83b83e9cca62dbfb0959daaf2dab7046b1115954 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 1 Nov 2018 19:50:09 +0000 Subject: [PATCH 02/10] [UPD] README.rst --- agreement_maintenance/README.rst | 31 +- .../static/description/index.html | 457 ++++++++++++++++++ 2 files changed, 465 insertions(+), 23 deletions(-) create mode 100644 agreement_maintenance/static/description/index.html diff --git a/agreement_maintenance/README.rst b/agreement_maintenance/README.rst index 6b72ce28..7de2499c 100644 --- a/agreement_maintenance/README.rst +++ b/agreement_maintenance/README.rst @@ -1,6 +1,6 @@ -========== -Agreements -========== +====================== +Maintenance Agreements +====================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! @@ -14,10 +14,10 @@ Agreements :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 + :target: https://github.com/OCA/contract/tree/11.0/agreement_maintenance :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 + :target: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-agreement_maintenance :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 @@ -25,15 +25,7 @@ Agreements |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows you to manage agreements, letter of intent and contract content. -The module is meant to be used by the legal team of a company and to allow them -to define sections, clauses and templates with their respective content that can -be dynamic. - -Based on the template, an agreement can be created and the pdf document generated. - -The agreement would go through a workflow to finally become a contract with the -customer signature. +This module allows you to manage maintenance agreements and contracts. **Table of contents** @@ -61,20 +53,13 @@ To use this module: * Follow the process to get the required approval * Send the invitation to the customer to review and sign the agreement -Known issues / Roadmap -====================== - -* Split the module to remove the dependencies on sale and account and provide - the same feature in extra modules (agreement_sale, agreement_account, - agreement_purchase) - 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. @@ -124,6 +109,6 @@ Current `maintainer `__: |maintainer-max3903| -This module is part of the `OCA/contract `_ project on GitHub. +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_maintenance/static/description/index.html b/agreement_maintenance/static/description/index.html new file mode 100644 index 00000000..023e5d22 --- /dev/null +++ b/agreement_maintenance/static/description/index.html @@ -0,0 +1,457 @@ + + + + + + +Maintenance Agreements + + + +
+

Maintenance Agreements

+ + +

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

+

This module allows you to manage maintenance agreements and contracts.

+

Table of contents

+ +
+

Configuration

+

To configure this module:

+
    +
  • Go to Agreement > Configuration > Templates
  • +
  • Create a new template with sections and clauses and their respective content
  • +
  • Go to Agreement > Configuration > Stages
  • +
  • Create and reorder stages to match your process
  • +
+
+
+

Usage

+

To use this module:

+
    +
  • Go to Agreement > Agrements
  • +
  • Create a new agreement
  • +
  • Select a template
  • +
  • Follow the process to get the required approval
  • +
  • Send the invitation to the customer to review and sign the agreement
  • +
+
+
+

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

+
    +
  • Pavlov Media
  • +
  • Open Source Integrators
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Pavlov Media
  • +
  • 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 maintainer:

+

max3903

+

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.

+
+
+
+ + From e681dae56bb5dcc0f8832080c95dfb9c71d4a69f Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 1 Nov 2018 20:39:55 +0000 Subject: [PATCH 03/10] [UPD] Update agreement_maintenance.pot --- .../i18n/agreement_maintenance.pot | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 agreement_maintenance/i18n/agreement_maintenance.pot diff --git a/agreement_maintenance/i18n/agreement_maintenance.pot b/agreement_maintenance/i18n/agreement_maintenance.pot new file mode 100644 index 00000000..5362c535 --- /dev/null +++ b/agreement_maintenance/i18n/agreement_maintenance.pot @@ -0,0 +1,139 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_maintenance +# +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_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_agreement_id +msgid "Agreement" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.actions.act_window,name:agreement_maintenance.agreement_action_serviceprofile +msgid "Agreement Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_uid +msgid "Created by" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_date +msgid "Created on" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_description +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +msgid "Description" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_maintenance +#: selection:agreement.serviceprofile,profile_type:0 +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_id +msgid "Equipment" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_category_id +msgid "Equipment Category" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_id +msgid "ID" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_product_product_serviceprofile_ok +#: model:ir.model.fields,field_description:agreement_maintenance.field_product_template_serviceprofile_ok +msgid "Include on Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile___last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_date +msgid "Last Updated on" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_name +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +msgid "Name" +msgstr "" + +#. module: agreement_maintenance +#: selection:agreement.serviceprofile,profile_type:0 +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_product_id +msgid "Product" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_product_template +msgid "Product Template" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_profile_type +msgid "Profile Type" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_fsm_location_id +msgid "Service Location" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_ids +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +msgid "Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.ui.menu,name:agreement_maintenance.agreement_service_profiles +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_form_view +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_list_view +msgid "Service Profiles" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,help:agreement_maintenance.field_product_product_serviceprofile_ok +#: model:ir.model.fields,help:agreement_maintenance.field_product_template_serviceprofile_ok +msgid "Specify if the product can be selected in a service profile line" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_agreement +msgid "agreement" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_agreement_serviceprofile +msgid "agreement.serviceprofile" +msgstr "" + From 6437b39f66c2024a4c784f7a7d6478e5f64e6afb Mon Sep 17 00:00:00 2001 From: Bhavesh Odedra Date: Tue, 11 Dec 2018 10:39:31 +0530 Subject: [PATCH 04/10] [11.0][RM] agreement_maintenance module --- agreement_maintenance/README.rst | 114 ----- agreement_maintenance/__init__.py | 4 - agreement_maintenance/__manifest__.py | 29 -- .../i18n/agreement_maintenance.pot | 139 ------ agreement_maintenance/models/__init__.py | 7 - agreement_maintenance/models/agreement.py | 15 - .../models/agreement_serviceprofile.py | 40 -- .../models/product_template.py | 14 - agreement_maintenance/readme/CONFIGURE.rst | 6 - agreement_maintenance/readme/CONTRIBUTORS.rst | 4 - agreement_maintenance/readme/CREDITS.rst | 4 - agreement_maintenance/readme/DESCRIPTION.rst | 1 - agreement_maintenance/readme/USAGE.rst | 7 - .../security/ir.model.access.csv | 3 - .../static/description/icon.png | Bin 6755 -> 0 bytes .../static/description/index.html | 457 ------------------ agreement_maintenance/views/agreement.xml | 27 -- .../views/agreement_serviceprofile.xml | 63 --- agreement_maintenance/views/menu.xml | 11 - agreement_maintenance/views/product.xml | 17 - 20 files changed, 962 deletions(-) delete mode 100644 agreement_maintenance/README.rst delete mode 100644 agreement_maintenance/__init__.py delete mode 100644 agreement_maintenance/__manifest__.py delete mode 100644 agreement_maintenance/i18n/agreement_maintenance.pot delete mode 100644 agreement_maintenance/models/__init__.py delete mode 100644 agreement_maintenance/models/agreement.py delete mode 100644 agreement_maintenance/models/agreement_serviceprofile.py delete mode 100644 agreement_maintenance/models/product_template.py delete mode 100644 agreement_maintenance/readme/CONFIGURE.rst delete mode 100644 agreement_maintenance/readme/CONTRIBUTORS.rst delete mode 100644 agreement_maintenance/readme/CREDITS.rst delete mode 100644 agreement_maintenance/readme/DESCRIPTION.rst delete mode 100644 agreement_maintenance/readme/USAGE.rst delete mode 100644 agreement_maintenance/security/ir.model.access.csv delete mode 100644 agreement_maintenance/static/description/icon.png delete mode 100644 agreement_maintenance/static/description/index.html delete mode 100644 agreement_maintenance/views/agreement.xml delete mode 100644 agreement_maintenance/views/agreement_serviceprofile.xml delete mode 100644 agreement_maintenance/views/menu.xml delete mode 100644 agreement_maintenance/views/product.xml diff --git a/agreement_maintenance/README.rst b/agreement_maintenance/README.rst deleted file mode 100644 index 7de2499c..00000000 --- a/agreement_maintenance/README.rst +++ /dev/null @@ -1,114 +0,0 @@ -====================== -Maintenance 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_maintenance - :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_maintenance - :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| - -This module allows you to manage maintenance agreements and contracts. - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -To configure this module: - -* Go to Agreement > Configuration > Templates -* Create a new template with sections and clauses and their respective content -* Go to Agreement > Configuration > Stages -* Create and reorder stages to match your process - -Usage -===== - -To use this module: - -* Go to Agreement > Agrements -* Create a new agreement -* Select a template -* Follow the process to get the required approval -* Send the invitation to the customer to review and sign the agreement - -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 -~~~~~~~ - -* Pavlov Media -* Open Source Integrators - -Contributors -~~~~~~~~~~~~ - -* Patrick Wilson -* Bhavesh Odedra -* Wolfgang Hall -* Maxime Chambreuil - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Pavlov Media -* 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 - -Current `maintainer `__: - -|maintainer-max3903| - -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_maintenance/__init__.py b/agreement_maintenance/__init__.py deleted file mode 100644 index 073035d1..00000000 --- a/agreement_maintenance/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (C) 2018 - TODAY, Pavlov Media -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from . import models diff --git a/agreement_maintenance/__manifest__.py b/agreement_maintenance/__manifest__.py deleted file mode 100644 index 9e06b6e8..00000000 --- a/agreement_maintenance/__manifest__.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (C) 2018 - TODAY, Pavlov Media -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -{ - 'name': 'Maintenance Agreements', - 'summary': 'Manage maintenance agreements and contracts', - 'author': 'Pavlov Media, ' - 'Open Source Integrators, ' - 'Odoo Community Association (OCA)', - 'website': 'https://github.com/OCA/contract', - 'category': 'Partner', - 'license': 'AGPL-3', - 'version': '11.0.0.0.1', - 'depends': [ - 'agreement', - 'maintenance', - 'fieldservice', - ], - 'data': [ - 'security/ir.model.access.csv', - 'views/agreement.xml', - 'views/agreement_serviceprofile.xml', - 'views/product.xml', - 'views/menu.xml', - ], - 'application': False, - 'development_status': 'Beta', - 'maintainers': ['max3903'], -} diff --git a/agreement_maintenance/i18n/agreement_maintenance.pot b/agreement_maintenance/i18n/agreement_maintenance.pot deleted file mode 100644 index 5362c535..00000000 --- a/agreement_maintenance/i18n/agreement_maintenance.pot +++ /dev/null @@ -1,139 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * agreement_maintenance -# -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_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_agreement_id -msgid "Agreement" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.actions.act_window,name:agreement_maintenance.agreement_action_serviceprofile -msgid "Agreement Service Profile" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_uid -msgid "Created by" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_date -msgid "Created on" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_description -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view -msgid "Description" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_display_name -msgid "Display Name" -msgstr "" - -#. module: agreement_maintenance -#: selection:agreement.serviceprofile,profile_type:0 -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_id -msgid "Equipment" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_category_id -msgid "Equipment Category" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_id -msgid "ID" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_product_product_serviceprofile_ok -#: model:ir.model.fields,field_description:agreement_maintenance.field_product_template_serviceprofile_ok -msgid "Include on Service Profile" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile___last_update -msgid "Last Modified on" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_uid -msgid "Last Updated by" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_date -msgid "Last Updated on" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_name -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view -msgid "Name" -msgstr "" - -#. module: agreement_maintenance -#: selection:agreement.serviceprofile,profile_type:0 -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_product_id -msgid "Product" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model,name:agreement_maintenance.model_product_template -msgid "Product Template" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_profile_type -msgid "Profile Type" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_fsm_location_id -msgid "Service Location" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_ids -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view -msgid "Service Profile" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.ui.menu,name:agreement_maintenance.agreement_service_profiles -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_form_view -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_list_view -msgid "Service Profiles" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,help:agreement_maintenance.field_product_product_serviceprofile_ok -#: model:ir.model.fields,help:agreement_maintenance.field_product_template_serviceprofile_ok -msgid "Specify if the product can be selected in a service profile line" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model,name:agreement_maintenance.model_agreement -msgid "agreement" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model,name:agreement_maintenance.model_agreement_serviceprofile -msgid "agreement.serviceprofile" -msgstr "" - diff --git a/agreement_maintenance/models/__init__.py b/agreement_maintenance/models/__init__.py deleted file mode 100644 index e8d8eb66..00000000 --- a/agreement_maintenance/models/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from . import ( - agreement, - product_template, - agreement_serviceprofile, -) diff --git a/agreement_maintenance/models/agreement.py b/agreement_maintenance/models/agreement.py deleted file mode 100644 index 4c77838d..00000000 --- a/agreement_maintenance/models/agreement.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (C) 2018 - TODAY, Pavlov Media -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class Agreement(models.Model): - _inherit = 'agreement' - - serviceprofile_ids = fields.One2many( - 'agreement.serviceprofile', - 'agreement_id', - string="Service Profile", - copy=True - ) diff --git a/agreement_maintenance/models/agreement_serviceprofile.py b/agreement_maintenance/models/agreement_serviceprofile.py deleted file mode 100644 index 99c6adf0..00000000 --- a/agreement_maintenance/models/agreement_serviceprofile.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (C) 2018 - TODAY, Pavlov Media -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -PROFILE_TYPE = [ - ('equipment', 'Equipment'), - ('product', 'Product') -] - - -class AgreementServiceProfile(models.Model): - _name = 'agreement.serviceprofile' - - name = fields.Char(string="Name", required=True) - profile_type = fields.Selection( - PROFILE_TYPE, - string="Profile Type") - description = fields.Text(string="Description") - equipment_id = fields.Many2one( - 'maintenance.equipment', - string="Equipment") - product_id = fields.Many2one( - 'product.product', - string="Product", - domain=[('serviceprofile_ok', '=', True)]) - equipment_category_id = fields.Many2one( - 'maintenance.equipment.category', - related='equipment_id.category_id', - string="Equipment Category", - readonly=1) - agreement_id = fields.Many2one( - 'agreement', - string="Agreement", - ondelete="cascade", - required=True) - fsm_location_id = fields.Many2one( - 'fsm.location', - string="Service Location") diff --git a/agreement_maintenance/models/product_template.py b/agreement_maintenance/models/product_template.py deleted file mode 100644 index 51de3a2b..00000000 --- a/agreement_maintenance/models/product_template.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (C) 2018 - TODAY, Pavlov Media -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import models, fields - - -class Product(models.Model): - _inherit = 'product.template' - - serviceprofile_ok = fields.Boolean( - string='Include on Service Profile', - default=False, - help="Specify if the product can be selected in a service profile line" - ) diff --git a/agreement_maintenance/readme/CONFIGURE.rst b/agreement_maintenance/readme/CONFIGURE.rst deleted file mode 100644 index 3871fc34..00000000 --- a/agreement_maintenance/readme/CONFIGURE.rst +++ /dev/null @@ -1,6 +0,0 @@ -To configure this module: - -* Go to Agreement > Configuration > Templates -* Create a new template with sections and clauses and their respective content -* Go to Agreement > Configuration > Stages -* Create and reorder stages to match your process diff --git a/agreement_maintenance/readme/CONTRIBUTORS.rst b/agreement_maintenance/readme/CONTRIBUTORS.rst deleted file mode 100644 index 4e2eb061..00000000 --- a/agreement_maintenance/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* Patrick Wilson -* Bhavesh Odedra -* Wolfgang Hall -* Maxime Chambreuil diff --git a/agreement_maintenance/readme/CREDITS.rst b/agreement_maintenance/readme/CREDITS.rst deleted file mode 100644 index 0543afe7..00000000 --- a/agreement_maintenance/readme/CREDITS.rst +++ /dev/null @@ -1,4 +0,0 @@ -The development of this module has been financially supported by: - -* Pavlov Media -* Open Source Integrators diff --git a/agreement_maintenance/readme/DESCRIPTION.rst b/agreement_maintenance/readme/DESCRIPTION.rst deleted file mode 100644 index 020bfcbb..00000000 --- a/agreement_maintenance/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -This module allows you to manage maintenance agreements and contracts. diff --git a/agreement_maintenance/readme/USAGE.rst b/agreement_maintenance/readme/USAGE.rst deleted file mode 100644 index 0eb52e5a..00000000 --- a/agreement_maintenance/readme/USAGE.rst +++ /dev/null @@ -1,7 +0,0 @@ -To use this module: - -* Go to Agreement > Agrements -* Create a new agreement -* Select a template -* Follow the process to get the required approval -* Send the invitation to the customer to review and sign the agreement diff --git a/agreement_maintenance/security/ir.model.access.csv b/agreement_maintenance/security/ir.model.access.csv deleted file mode 100644 index 8e45456f..00000000 --- a/agreement_maintenance/security/ir.model.access.csv +++ /dev/null @@ -1,3 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_agreement_serviceprofile_allusers,serviceprofile all users,model_agreement_serviceprofile,agreement.group_agreement_user,1,0,0,0 -access_agreement_serviceprofile_manager,serviceprofile manager,model_agreement_serviceprofile,agreement.group_agreement_manager,1,1,1,1 diff --git a/agreement_maintenance/static/description/icon.png b/agreement_maintenance/static/description/icon.png deleted file mode 100644 index 23ce93135053c48a74469807879f2805b12382ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6755 zcmV-p8l2^cP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vG&=l}pD=mCOb1snhX8Td&=K~#8N-CKFQ zBvp0(s=Io9`)n{X!YCjrLL4@uLLx?^7>Nlg;0OWKpNe}Tf-$lvB8s2}{h8qK3&9P6 zA)<*}0!9po;{xiS0)rw5Gt55ky?(Ek>Z-1M-??>PSHF1!0kiLh2wasDW7Mv0M0u zAiRJ^rHqA4zG5Ljk*y(xm+2{|26%Krt8`xQhXRsC)@DI(@bcpppYg!>v;++1pP(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Rx5w>w8Ws21eG$hhuMIO0~-0SXq5F2^wocH4AprdV+ zbZG>gPA<5~TkX!l`B4`5>eUKPzw#E0O)N!Ft|Mh05LX#c^}7Rop(C2gS;&ZckH9B= zIm(*WvBh0lOD*zjFD4W|Y9MIOpwOarCwJn~Q;tS6o<>5I>g#cBAqngi;E^9DxClyk zy+%`EpT*4X&G_g^hoiydgl6J`q)Z0%^;sZ|iV-_s*_EoF!pj51@H_>W_t-^5!jq)l zIH@KcI7hjCi4DD2w^V@>))c@oDxEUKHx*2ttMxiATz4l%#ulSg8$qkS3_)cGagjMe zMY#Y~PCk|2%V6?c^8ia<$&j{yk|4eM2^e5{;9WfKAfzG`MI)Z!FMQfCPXz`XqCgI% z?*h&3C7j79+p?bR~!Gtq|H&EY!0ST(6H8_VwOLkeSnlgioS-oQA}qt+B;g@JzL@;O!O!#kbt5Cu@>3 zS<+fqT3;rZR!J31OzTb&Zea)6D2~r0BDg2lL)Q8e{9r+D5n0lMoig^MPqjNE^@p$~ zA*EpQsO-|sm$$h-H_Mt#5ek~-3H)dAM(BPGo=xN;4yg!flKaQ@u9aDx3+q{^aUN|P z(adDlAp^=S6kt`xZoZ+OJ^D6V+pS@*p;B*!1Qrt*G`%M}58wz5vH-@4Tto(AicN#)*iZ~mu;Cdk z)Xj^Q)v@V!mIvEw^UyT!=aR5T`%b|WCdK#B+?GNKxxj+x`wdk$;^Nm1$4qMH8M-N^ zl0gBIt{&SlPM&0JodR0G5#~Ha{~TDLQlFVosJi|Qj(aSywHJT^&zJ||$;!Qu+1uQK z@iH8ZotBskyO+;?2zG`Ek5i zvg+&nlgn#KZ+$6E?+eZC%}qsz9U5e4ooq9$s&r_58NvK`17FFZmdPtYgbn#DvgT#> z=cX7@Ln)9&hOY2*`>1yDC3zL)J=%Qst5nT^)&7 - - - - - -Maintenance Agreements - - - -
-

Maintenance Agreements

- - -

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

-

This module allows you to manage maintenance agreements and contracts.

-

Table of contents

- -
-

Configuration

-

To configure this module:

-
    -
  • Go to Agreement > Configuration > Templates
  • -
  • Create a new template with sections and clauses and their respective content
  • -
  • Go to Agreement > Configuration > Stages
  • -
  • Create and reorder stages to match your process
  • -
-
-
-

Usage

-

To use this module:

-
    -
  • Go to Agreement > Agrements
  • -
  • Create a new agreement
  • -
  • Select a template
  • -
  • Follow the process to get the required approval
  • -
  • Send the invitation to the customer to review and sign the agreement
  • -
-
-
-

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

-
    -
  • Pavlov Media
  • -
  • Open Source Integrators
  • -
-
- -
-

Other credits

-

The development of this module has been financially supported by:

-
    -
  • Pavlov Media
  • -
  • 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 maintainer:

-

max3903

-

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_maintenance/views/agreement.xml b/agreement_maintenance/views/agreement.xml deleted file mode 100644 index eefa92a9..00000000 --- a/agreement_maintenance/views/agreement.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Agreement Form - agreement - - - - - - - - - - - - - - - - - - - diff --git a/agreement_maintenance/views/agreement_serviceprofile.xml b/agreement_maintenance/views/agreement_serviceprofile.xml deleted file mode 100644 index b0339c21..00000000 --- a/agreement_maintenance/views/agreement_serviceprofile.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - Agreement Service Profile List - agreement.serviceprofile - - - - - - - - - - - - - - - Agreement Service Profile Form - agreement.serviceprofile - -
- -
-

- -

-
- - - - - - - - - - - - - - -
-
-
-
- - - - Agreement Service Profile - agreement.serviceprofile - tree,form - - -
diff --git a/agreement_maintenance/views/menu.xml b/agreement_maintenance/views/menu.xml deleted file mode 100644 index acf8af5f..00000000 --- a/agreement_maintenance/views/menu.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - diff --git a/agreement_maintenance/views/product.xml b/agreement_maintenance/views/product.xml deleted file mode 100644 index 4c2be246..00000000 --- a/agreement_maintenance/views/product.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - product.template.common.serviceprofile.ok.form - product.template - - -
-
- -
-
-
-
-
From 5f14bd47f1ff4eaa58d2819da66fa02882106aac Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 24 Jan 2019 12:49:00 -0600 Subject: [PATCH 05/10] [ADD] agreement_maintenance --- agreement_maintenance/README.rst | 114 +++++ agreement_maintenance/__init__.py | 4 + agreement_maintenance/__manifest__.py | 24 + .../i18n/agreement_maintenance.pot | 139 ++++++ agreement_maintenance/models/__init__.py | 6 + agreement_maintenance/models/agreement.py | 21 + .../models/maintenance_request.py | 12 + agreement_maintenance/readme/CONFIGURE.rst | 6 + agreement_maintenance/readme/CONTRIBUTORS.rst | 4 + agreement_maintenance/readme/CREDITS.rst | 4 + agreement_maintenance/readme/DESCRIPTION.rst | 1 + agreement_maintenance/readme/USAGE.rst | 10 + .../static/description/icon.png | Bin 0 -> 6755 bytes .../static/description/index.html | 457 ++++++++++++++++++ .../views/agreement_view.xml | 40 ++ .../views/maintenance_request_view.xml | 32 ++ 16 files changed, 874 insertions(+) create mode 100644 agreement_maintenance/README.rst create mode 100644 agreement_maintenance/__init__.py create mode 100644 agreement_maintenance/__manifest__.py create mode 100644 agreement_maintenance/i18n/agreement_maintenance.pot create mode 100644 agreement_maintenance/models/__init__.py create mode 100644 agreement_maintenance/models/agreement.py create mode 100644 agreement_maintenance/models/maintenance_request.py create mode 100644 agreement_maintenance/readme/CONFIGURE.rst create mode 100644 agreement_maintenance/readme/CONTRIBUTORS.rst create mode 100644 agreement_maintenance/readme/CREDITS.rst create mode 100644 agreement_maintenance/readme/DESCRIPTION.rst create mode 100644 agreement_maintenance/readme/USAGE.rst create mode 100644 agreement_maintenance/static/description/icon.png create mode 100644 agreement_maintenance/static/description/index.html create mode 100644 agreement_maintenance/views/agreement_view.xml create mode 100644 agreement_maintenance/views/maintenance_request_view.xml diff --git a/agreement_maintenance/README.rst b/agreement_maintenance/README.rst new file mode 100644 index 00000000..7de2499c --- /dev/null +++ b/agreement_maintenance/README.rst @@ -0,0 +1,114 @@ +====================== +Maintenance 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_maintenance + :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_maintenance + :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| + +This module allows you to manage maintenance agreements and contracts. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module: + +* Go to Agreement > Configuration > Templates +* Create a new template with sections and clauses and their respective content +* Go to Agreement > Configuration > Stages +* Create and reorder stages to match your process + +Usage +===== + +To use this module: + +* Go to Agreement > Agrements +* Create a new agreement +* Select a template +* Follow the process to get the required approval +* Send the invitation to the customer to review and sign the agreement + +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 +~~~~~~~ + +* Pavlov Media +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Patrick Wilson +* Bhavesh Odedra +* Wolfgang Hall +* Maxime Chambreuil + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Pavlov Media +* 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 + +Current `maintainer `__: + +|maintainer-max3903| + +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_maintenance/__init__.py b/agreement_maintenance/__init__.py new file mode 100644 index 00000000..073035d1 --- /dev/null +++ b/agreement_maintenance/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/agreement_maintenance/__manifest__.py b/agreement_maintenance/__manifest__.py new file mode 100644 index 00000000..3fef7447 --- /dev/null +++ b/agreement_maintenance/__manifest__.py @@ -0,0 +1,24 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Maintenance Agreements', + 'summary': 'Manage maintenance agreements and contracts', + 'author': 'Pavlov Media, ' + 'Open Source Integrators, ' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/contract', + 'category': 'Maintenance', + 'license': 'AGPL-3', + 'version': '11.0.0.0.1', + 'depends': [ + 'agreement', + 'maintenance', + ], + 'data': [ + 'views/agreement_view.xml', + 'views/maintenance_request_view.xml', + ], + 'development_status': 'Beta', + 'maintainers': ['max3903'], +} diff --git a/agreement_maintenance/i18n/agreement_maintenance.pot b/agreement_maintenance/i18n/agreement_maintenance.pot new file mode 100644 index 00000000..5362c535 --- /dev/null +++ b/agreement_maintenance/i18n/agreement_maintenance.pot @@ -0,0 +1,139 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_maintenance +# +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_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_agreement_id +msgid "Agreement" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.actions.act_window,name:agreement_maintenance.agreement_action_serviceprofile +msgid "Agreement Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_uid +msgid "Created by" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_date +msgid "Created on" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_description +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +msgid "Description" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_maintenance +#: selection:agreement.serviceprofile,profile_type:0 +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_id +msgid "Equipment" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_category_id +msgid "Equipment Category" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_id +msgid "ID" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_product_product_serviceprofile_ok +#: model:ir.model.fields,field_description:agreement_maintenance.field_product_template_serviceprofile_ok +msgid "Include on Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile___last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_date +msgid "Last Updated on" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_name +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +msgid "Name" +msgstr "" + +#. module: agreement_maintenance +#: selection:agreement.serviceprofile,profile_type:0 +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_product_id +msgid "Product" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_product_template +msgid "Product Template" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_profile_type +msgid "Profile Type" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_fsm_location_id +msgid "Service Location" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_ids +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +msgid "Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.ui.menu,name:agreement_maintenance.agreement_service_profiles +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_form_view +#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_list_view +msgid "Service Profiles" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,help:agreement_maintenance.field_product_product_serviceprofile_ok +#: model:ir.model.fields,help:agreement_maintenance.field_product_template_serviceprofile_ok +msgid "Specify if the product can be selected in a service profile line" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_agreement +msgid "agreement" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_agreement_serviceprofile +msgid "agreement.serviceprofile" +msgstr "" + diff --git a/agreement_maintenance/models/__init__.py b/agreement_maintenance/models/__init__.py new file mode 100644 index 00000000..bbfee333 --- /dev/null +++ b/agreement_maintenance/models/__init__.py @@ -0,0 +1,6 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import ( + agreement, + maintenance_request, +) diff --git a/agreement_maintenance/models/agreement.py b/agreement_maintenance/models/agreement.py new file mode 100644 index 00000000..5d7ea34d --- /dev/null +++ b/agreement_maintenance/models/agreement.py @@ -0,0 +1,21 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class Agreement(models.Model): + _inherit = "agreement" + + mr_count = fields.Integer('# Maintenance Requests', + compute='_compute_mr_count') + + @api.multi + def _compute_mr_count(self): + data = self.env['maintenance.request'].read_group( + [('agreement_id', 'in', self.ids)], + ['agreement_id'], ['agreement_id']) + count_data = dict((item['agreement_id'][0], + item['agreement_id_count']) for item in data) + for agreement in self: + agreement.mr_count = count_data.get(agreement.id, 0) diff --git a/agreement_maintenance/models/maintenance_request.py b/agreement_maintenance/models/maintenance_request.py new file mode 100644 index 00000000..afc454a4 --- /dev/null +++ b/agreement_maintenance/models/maintenance_request.py @@ -0,0 +1,12 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class MaintenanceRequest(models.Model): + _inherit = "maintenance.request" + + agreement_id = fields.Many2one('agreement', 'Agreement') + serviceprofile_id = fields.Many2one('agreement.serviceprofile', + 'Service Profile') diff --git a/agreement_maintenance/readme/CONFIGURE.rst b/agreement_maintenance/readme/CONFIGURE.rst new file mode 100644 index 00000000..3871fc34 --- /dev/null +++ b/agreement_maintenance/readme/CONFIGURE.rst @@ -0,0 +1,6 @@ +To configure this module: + +* Go to Agreement > Configuration > Templates +* Create a new template with sections and clauses and their respective content +* Go to Agreement > Configuration > Stages +* Create and reorder stages to match your process diff --git a/agreement_maintenance/readme/CONTRIBUTORS.rst b/agreement_maintenance/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..4e2eb061 --- /dev/null +++ b/agreement_maintenance/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Patrick Wilson +* Bhavesh Odedra +* Wolfgang Hall +* Maxime Chambreuil diff --git a/agreement_maintenance/readme/CREDITS.rst b/agreement_maintenance/readme/CREDITS.rst new file mode 100644 index 00000000..0543afe7 --- /dev/null +++ b/agreement_maintenance/readme/CREDITS.rst @@ -0,0 +1,4 @@ +The development of this module has been financially supported by: + +* Pavlov Media +* Open Source Integrators diff --git a/agreement_maintenance/readme/DESCRIPTION.rst b/agreement_maintenance/readme/DESCRIPTION.rst new file mode 100644 index 00000000..020bfcbb --- /dev/null +++ b/agreement_maintenance/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows you to manage maintenance agreements and contracts. diff --git a/agreement_maintenance/readme/USAGE.rst b/agreement_maintenance/readme/USAGE.rst new file mode 100644 index 00000000..b28609a5 --- /dev/null +++ b/agreement_maintenance/readme/USAGE.rst @@ -0,0 +1,10 @@ +To use this module: + +* Go to Maintenance +* Create or select a maintenance request +* Select the Agreement +* Select the Service Profile related to the select agreement +* Go to Agreement +* Open the previous agreement and click on the smart button + "Maintenance Requests" to see the list of related maintenance requests +* Group the requests by Service Profile diff --git a/agreement_maintenance/static/description/icon.png b/agreement_maintenance/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..23ce93135053c48a74469807879f2805b12382ad GIT binary patch literal 6755 zcmV-p8l2^cP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vG&=l}pD=mCOb1snhX8Td&=K~#8N-CKFQ zBvp0(s=Io9`)n{X!YCjrLL4@uLLx?^7>Nlg;0OWKpNe}Tf-$lvB8s2}{h8qK3&9P6 zA)<*}0!9po;{xiS0)rw5Gt55ky?(Ek>Z-1M-??>PSHF1!0kiLh2wasDW7Mv0M0u zAiRJ^rHqA4zG5Ljk*y(xm+2{|26%Krt8`xQhXRsC)@DI(@bcpppYg!>v;++1pP(b zB62H-0kN3ksaS zR}aWD)l0;!XGCohU_SQS-CoR|NhIdH`PiGAGavhN=hn!rHy`_k8N??N6qOqcfEdVw zYK|$D#GZf7Gu%fHdYr?({Mo+@_XY!NOCXPXgWMR+(PN&k`H&?-_G#d?mP(6sE#^fQ20q0-8j1dCw}k zkNIsfAY={-+|HERRq|lXT!gdv#KlNdZY2*$l4K6eI%=noM#Knb7R#__Ub83iBR9sa zFLdiVCFRHD>9SKnDWkpcn%?@EO&5gVpby@rj9@?sHi^Q-qQSKUjyWwxW|ca#UuB0u zRG>iA2Tk&I&2eY0T1Cbf)pL%s{Ilq|(Hd)o!Q4DO^FtI$#ekTn?LZ?-MFvJyxORb_ z>t+tZ9t!Y8RHmF5#}bqqAx+Q;hf(QH(*?Vjj4BulV;sJs&UBLV$q{GRIwmk5wUTaI zPKj<^&w^?pE1F~K3_{l~y0WhELE1URYE6NS;p8;#;^$jB*xl)2=}?K=p}@_W(I;w+ zfU*gTRDkHrhv0w@`Rni?$knwyx?Sx)Em}l5YM@yh!_LMGKJX_)IODm?c{&tPQ6zQr zD6zX}$T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Q@u9aDx3+q{^aUN|P z(adDlAp^=S6kt`xZoZ+OJ^D6V+pS@*p;B*!1Qrt*G`%M}58wz5vH-@4Tto(AicN#)*iZ~mu;Cdk z)Xj^Q)v@V!mIvEw^UyT!=aR5T`%b|WCdK#B+?GNKxxj+x`wdk$;^Nm1$4qMH8M-N^ zl0gBIt{&SlPM&0JodR0G5#~Ha{~TDLQlFVosJi|Qj(aSywHJT^&zJ||$;!Qu+1uQK z@iH8ZotBskyO+;?2zG`Ek5i zvg+&nlgn#KZ+$6E?+eZC%}qsz9U5e4ooq9$s&r_58NvK`17FFZmdPtYgbn#DvgT#> z=cX7@Ln)9&hOY2*`>1yDC3zL)J=%Qst5nT^)&7 + + + + + +Maintenance Agreements + + + +
+

Maintenance Agreements

+ + +

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

+

This module allows you to manage maintenance agreements and contracts.

+

Table of contents

+ +
+

Configuration

+

To configure this module:

+
    +
  • Go to Agreement > Configuration > Templates
  • +
  • Create a new template with sections and clauses and their respective content
  • +
  • Go to Agreement > Configuration > Stages
  • +
  • Create and reorder stages to match your process
  • +
+
+
+

Usage

+

To use this module:

+
    +
  • Go to Agreement > Agrements
  • +
  • Create a new agreement
  • +
  • Select a template
  • +
  • Follow the process to get the required approval
  • +
  • Send the invitation to the customer to review and sign the agreement
  • +
+
+
+

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

+
    +
  • Pavlov Media
  • +
  • Open Source Integrators
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Pavlov Media
  • +
  • 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 maintainer:

+

max3903

+

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_maintenance/views/agreement_view.xml b/agreement_maintenance/views/agreement_view.xml new file mode 100644 index 00000000..c4d28fc7 --- /dev/null +++ b/agreement_maintenance/views/agreement_view.xml @@ -0,0 +1,40 @@ + + + + + Maaintenance Requests + ir.actions.act_window + maintenance.request + form + tree,form + [('agreement_id', '=', active_id)] + +

+ Create Maintenance Requests +

+
+
+ + + agreement.form.maintenance.request + agreement + + + + + + + + +
diff --git a/agreement_maintenance/views/maintenance_request_view.xml b/agreement_maintenance/views/maintenance_request_view.xml new file mode 100644 index 00000000..57e87608 --- /dev/null +++ b/agreement_maintenance/views/maintenance_request_view.xml @@ -0,0 +1,32 @@ + + + + + maintenance.request.form.agreement + maintenance.request + + + + + + + + + + + + maintenance.request.select.agreement + maintenance.request + + + + + + + + + From e707084fa26d69829c403676fa344960a30ba778 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 28 Jan 2019 14:20:28 +0000 Subject: [PATCH 06/10] [UPD] README.rst --- agreement_maintenance/README.rst | 13 ++++++++----- agreement_maintenance/static/description/index.html | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/agreement_maintenance/README.rst b/agreement_maintenance/README.rst index 7de2499c..482cc501 100644 --- a/agreement_maintenance/README.rst +++ b/agreement_maintenance/README.rst @@ -47,11 +47,14 @@ Usage To use this module: -* Go to Agreement > Agrements -* Create a new agreement -* Select a template -* Follow the process to get the required approval -* Send the invitation to the customer to review and sign the agreement +* Go to Maintenance +* Create or select a maintenance request +* Select the Agreement +* Select the Service Profile related to the select agreement +* Go to Agreement +* Open the previous agreement and click on the smart button + "Maintenance Requests" to see the list of related maintenance requests +* Group the requests by Service Profile Bug Tracker =========== diff --git a/agreement_maintenance/static/description/index.html b/agreement_maintenance/static/description/index.html index 023e5d22..f5047798 100644 --- a/agreement_maintenance/static/description/index.html +++ b/agreement_maintenance/static/description/index.html @@ -398,11 +398,14 @@ ul.auto-toc {

Usage

To use this module:

    -
  • Go to Agreement > Agrements
  • -
  • Create a new agreement
  • -
  • Select a template
  • -
  • Follow the process to get the required approval
  • -
  • Send the invitation to the customer to review and sign the agreement
  • +
  • Go to Maintenance
  • +
  • Create or select a maintenance request
  • +
  • Select the Agreement
  • +
  • Select the Service Profile related to the select agreement
  • +
  • Go to Agreement
  • +
  • Open the previous agreement and click on the smart button +“Maintenance Requests” to see the list of related maintenance requests
  • +
  • Group the requests by Service Profile
From 3540cd69b21510bd53f4fba0cd58c189417d61d8 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 28 Jan 2019 14:54:11 +0000 Subject: [PATCH 07/10] [UPD] Update agreement_maintenance.pot --- .../i18n/agreement_maintenance.pot | 111 +++--------------- 1 file changed, 14 insertions(+), 97 deletions(-) diff --git a/agreement_maintenance/i18n/agreement_maintenance.pot b/agreement_maintenance/i18n/agreement_maintenance.pot index 5362c535..dd5d8985 100644 --- a/agreement_maintenance/i18n/agreement_maintenance.pot +++ b/agreement_maintenance/i18n/agreement_maintenance.pot @@ -14,126 +14,43 @@ msgstr "" "Plural-Forms: \n" #. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_agreement_id -msgid "Agreement" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.actions.act_window,name:agreement_maintenance.agreement_action_serviceprofile -msgid "Agreement Service Profile" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_uid -msgid "Created by" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_create_date -msgid "Created on" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_description -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view -msgid "Description" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_display_name -msgid "Display Name" -msgstr "" - -#. module: agreement_maintenance -#: selection:agreement.serviceprofile,profile_type:0 -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_id -msgid "Equipment" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_equipment_category_id -msgid "Equipment Category" +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_mr_count +msgid "# Maintenance Requests" msgstr "" #. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_id -msgid "ID" +#: model:ir.ui.view,arch_db:agreement_maintenance.partner_agreement_form_view +msgid "Maintenance Requests" msgstr "" #. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_product_product_serviceprofile_ok -#: model:ir.model.fields,field_description:agreement_maintenance.field_product_template_serviceprofile_ok -msgid "Include on Service Profile" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile___last_update -msgid "Last Modified on" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_uid -msgid "Last Updated by" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_write_date -msgid "Last Updated on" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_name -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view -msgid "Name" -msgstr "" - -#. module: agreement_maintenance -#: selection:agreement.serviceprofile,profile_type:0 -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_product_id -msgid "Product" +#: model:ir.model.fields,field_description:agreement_maintenance.field_maintenance_request_agreement_id +msgid "Agreement" msgstr "" #. module: agreement_maintenance -#: model:ir.model,name:agreement_maintenance.model_product_template -msgid "Product Template" +#: model:ir.actions.act_window,help:agreement_maintenance.action_maintenance_request_agreement_specific +msgid "Create Maintenance Requests" msgstr "" #. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_profile_type -msgid "Profile Type" +#: model:ir.actions.act_window,name:agreement_maintenance.action_maintenance_request_agreement_specific +msgid "Maaintenance Requests" msgstr "" #. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_fsm_location_id -msgid "Service Location" +#: model:ir.model,name:agreement_maintenance.model_maintenance_request +msgid "Maintenance Requests" msgstr "" #. module: agreement_maintenance -#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_serviceprofile_ids -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_form_view +#: model:ir.model.fields,field_description:agreement_maintenance.field_maintenance_request_serviceprofile_id +#: model:ir.ui.view,arch_db:agreement_maintenance.view_maintenance_request_filter_agreement msgid "Service Profile" msgstr "" -#. module: agreement_maintenance -#: model:ir.ui.menu,name:agreement_maintenance.agreement_service_profiles -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_form_view -#: model:ir.ui.view,arch_db:agreement_maintenance.agreement_serviceprofile_list_view -msgid "Service Profiles" -msgstr "" - -#. module: agreement_maintenance -#: model:ir.model.fields,help:agreement_maintenance.field_product_product_serviceprofile_ok -#: model:ir.model.fields,help:agreement_maintenance.field_product_template_serviceprofile_ok -msgid "Specify if the product can be selected in a service profile line" -msgstr "" - #. module: agreement_maintenance #: model:ir.model,name:agreement_maintenance.model_agreement msgid "agreement" msgstr "" -#. module: agreement_maintenance -#: model:ir.model,name:agreement_maintenance.model_agreement_serviceprofile -msgid "agreement.serviceprofile" -msgstr "" - From cbb5a8a17619d1824890a0f41952dd586b7d6fc9 Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Fri, 22 Feb 2019 12:38:42 +0000 Subject: [PATCH 08/10] Added translation using Weblate (German) --- agreement_maintenance/i18n/de.po | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 agreement_maintenance/i18n/de.po diff --git a/agreement_maintenance/i18n/de.po b/agreement_maintenance/i18n/de.po new file mode 100644 index 00000000..e2e6d035 --- /dev/null +++ b/agreement_maintenance/i18n/de.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_maintenance +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_mr_count +msgid "# Maintenance Requests" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.ui.view,arch_db:agreement_maintenance.partner_agreement_form_view +msgid "Maintenance Requests" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_maintenance_request_agreement_id +msgid "Agreement" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.actions.act_window,help:agreement_maintenance.action_maintenance_request_agreement_specific +msgid "Create Maintenance Requests" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.actions.act_window,name:agreement_maintenance.action_maintenance_request_agreement_specific +msgid "Maaintenance Requests" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_maintenance_request +msgid "Maintenance Requests" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model.fields,field_description:agreement_maintenance.field_maintenance_request_serviceprofile_id +#: model:ir.ui.view,arch_db:agreement_maintenance.view_maintenance_request_filter_agreement +msgid "Service Profile" +msgstr "" + +#. module: agreement_maintenance +#: model:ir.model,name:agreement_maintenance.model_agreement +msgid "agreement" +msgstr "" From cdc052fe6b61add7c635ad2ddddb1de139f1096f Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Fri, 22 Feb 2019 12:43:18 +0000 Subject: [PATCH 09/10] Translated using Weblate (German) Currently translated at 100.0% (8 of 8 strings) Translation: contract-11.0/contract-11.0-agreement_maintenance Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-agreement_maintenance/de/ --- agreement_maintenance/i18n/de.po | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/agreement_maintenance/i18n/de.po b/agreement_maintenance/i18n/de.po index e2e6d035..8b45c756 100644 --- a/agreement_maintenance/i18n/de.po +++ b/agreement_maintenance/i18n/de.po @@ -6,51 +6,53 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2019-02-22 14:50+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.4\n" #. module: agreement_maintenance #: model:ir.model.fields,field_description:agreement_maintenance.field_agreement_mr_count msgid "# Maintenance Requests" -msgstr "" +msgstr "# Wartungsanfragen" #. module: agreement_maintenance #: model:ir.ui.view,arch_db:agreement_maintenance.partner_agreement_form_view msgid "Maintenance Requests" -msgstr "" +msgstr "Wartungsanfragen" #. module: agreement_maintenance #: model:ir.model.fields,field_description:agreement_maintenance.field_maintenance_request_agreement_id msgid "Agreement" -msgstr "" +msgstr "Vereinbarung" #. module: agreement_maintenance #: model:ir.actions.act_window,help:agreement_maintenance.action_maintenance_request_agreement_specific msgid "Create Maintenance Requests" -msgstr "" +msgstr "Wartungsanfrage erzeugen" #. module: agreement_maintenance #: model:ir.actions.act_window,name:agreement_maintenance.action_maintenance_request_agreement_specific msgid "Maaintenance Requests" -msgstr "" +msgstr "Wartungsanfragen" #. module: agreement_maintenance #: model:ir.model,name:agreement_maintenance.model_maintenance_request msgid "Maintenance Requests" -msgstr "" +msgstr "Wartungsanfragen" #. module: agreement_maintenance #: model:ir.model.fields,field_description:agreement_maintenance.field_maintenance_request_serviceprofile_id #: model:ir.ui.view,arch_db:agreement_maintenance.view_maintenance_request_filter_agreement msgid "Service Profile" -msgstr "" +msgstr "Dienstleistungsprofil" #. module: agreement_maintenance #: model:ir.model,name:agreement_maintenance.model_agreement msgid "agreement" -msgstr "" +msgstr "Vereinbarung" From 8b0f324e5992cf200c7b161984706987be632b60 Mon Sep 17 00:00:00 2001 From: Murtuza Saleh Date: Wed, 27 Mar 2019 19:33:16 +0530 Subject: [PATCH 10/10] [MIG][12.0] agreement_maintenance --- agreement_maintenance/README.rst | 7 ++++--- agreement_maintenance/__manifest__.py | 4 ++-- agreement_maintenance/models/agreement.py | 10 +++------- agreement_maintenance/readme/CONTRIBUTORS.rst | 1 + agreement_maintenance/static/description/index.html | 4 ++-- agreement_maintenance/views/agreement_view.xml | 2 +- .../views/maintenance_request_view.xml | 2 +- 7 files changed, 14 insertions(+), 16 deletions(-) diff --git a/agreement_maintenance/README.rst b/agreement_maintenance/README.rst index 482cc501..91987dbb 100644 --- a/agreement_maintenance/README.rst +++ b/agreement_maintenance/README.rst @@ -14,13 +14,13 @@ Maintenance Agreements :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_maintenance + :target: https://github.com/OCA/contract/tree/12.0/agreement_maintenance :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_maintenance :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 + :target: https://runbot.odoo-community.org/runbot/110/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -82,6 +82,7 @@ Contributors * Bhavesh Odedra * Wolfgang Hall * Maxime Chambreuil +* Serpent Consulting Services Pvt. Ltd. Other credits ~~~~~~~~~~~~~ @@ -112,6 +113,6 @@ Current `maintainer `__: |maintainer-max3903| -This module is part of the `OCA/contract `_ project on GitHub. +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_maintenance/__manifest__.py b/agreement_maintenance/__manifest__.py index 3fef7447..b62ede72 100644 --- a/agreement_maintenance/__manifest__.py +++ b/agreement_maintenance/__manifest__.py @@ -10,10 +10,10 @@ 'website': 'https://github.com/OCA/contract', 'category': 'Maintenance', 'license': 'AGPL-3', - 'version': '11.0.0.0.1', + 'version': '12.0.1.0.0', 'depends': [ - 'agreement', 'maintenance', + 'agreement_serviceprofile', ], 'data': [ 'views/agreement_view.xml', diff --git a/agreement_maintenance/models/agreement.py b/agreement_maintenance/models/agreement.py index 5d7ea34d..c5d9458b 100644 --- a/agreement_maintenance/models/agreement.py +++ b/agreement_maintenance/models/agreement.py @@ -12,10 +12,6 @@ class Agreement(models.Model): @api.multi def _compute_mr_count(self): - data = self.env['maintenance.request'].read_group( - [('agreement_id', 'in', self.ids)], - ['agreement_id'], ['agreement_id']) - count_data = dict((item['agreement_id'][0], - item['agreement_id_count']) for item in data) - for agreement in self: - agreement.mr_count = count_data.get(agreement.id, 0) + for ag_rec in self: + ag_rec.mr_count = self.env['maintenance.request'].search_count( + [('agreement_id', 'in', ag_rec.ids)]) diff --git a/agreement_maintenance/readme/CONTRIBUTORS.rst b/agreement_maintenance/readme/CONTRIBUTORS.rst index 4e2eb061..fd055b01 100644 --- a/agreement_maintenance/readme/CONTRIBUTORS.rst +++ b/agreement_maintenance/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Bhavesh Odedra * Wolfgang Hall * Maxime Chambreuil +* Serpent Consulting Services Pvt. Ltd. diff --git a/agreement_maintenance/static/description/index.html b/agreement_maintenance/static/description/index.html index f5047798..c26f1f5a 100644 --- a/agreement_maintenance/static/description/index.html +++ b/agreement_maintenance/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows you to manage maintenance agreements and contracts.

Table of contents

@@ -451,7 +451,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

max3903

-

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

+

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_maintenance/views/agreement_view.xml b/agreement_maintenance/views/agreement_view.xml index c4d28fc7..9cce2735 100644 --- a/agreement_maintenance/views/agreement_view.xml +++ b/agreement_maintenance/views/agreement_view.xml @@ -19,7 +19,7 @@ agreement.form.maintenance.request agreement - +