From d01f6eeab0cfb9a32b257031d5bb5023f90ae366 Mon Sep 17 00:00:00 2001 From: Murtuza Saleh Date: Tue, 2 Apr 2019 16:03:53 +0530 Subject: [PATCH 01/35] [ADD][12.0] agreement_serviceprofile [UPD] README.rst [UPD] Update agreement_serviceprofile.pot Added translation using Weblate (French) Translated using Weblate (French) Currently translated at 100.0% (14 of 14 strings) Translation: contract-12.0/contract-12.0-agreement_serviceprofile Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/fr/ --- agreement_serviceprofile/README.rst | 91 ++++ agreement_serviceprofile/__init__.py | 1 + agreement_serviceprofile/__manifest__.py | 24 + .../i18n/agreement_serviceprofile.pot | 88 ++++ agreement_serviceprofile/i18n/en_US.po | 92 ++++ agreement_serviceprofile/i18n/fr.po | 92 ++++ agreement_serviceprofile/models/__init__.py | 1 + .../models/agreement_serviceprofile.py | 19 + .../readme/CONTRIBUTORS.rst | 6 + .../readme/DESCRIPTION.rst | 5 + .../security/ir.model.access.csv | 3 + .../static/description/icon.png | Bin 0 -> 6755 bytes .../static/description/index.html | 432 ++++++++++++++++++ .../views/agreement_serviceprofile.xml | 75 +++ 14 files changed, 929 insertions(+) create mode 100644 agreement_serviceprofile/README.rst create mode 100644 agreement_serviceprofile/__init__.py create mode 100644 agreement_serviceprofile/__manifest__.py create mode 100644 agreement_serviceprofile/i18n/agreement_serviceprofile.pot create mode 100644 agreement_serviceprofile/i18n/en_US.po create mode 100644 agreement_serviceprofile/i18n/fr.po create mode 100644 agreement_serviceprofile/models/__init__.py create mode 100644 agreement_serviceprofile/models/agreement_serviceprofile.py create mode 100644 agreement_serviceprofile/readme/CONTRIBUTORS.rst create mode 100644 agreement_serviceprofile/readme/DESCRIPTION.rst create mode 100644 agreement_serviceprofile/security/ir.model.access.csv create mode 100644 agreement_serviceprofile/static/description/icon.png create mode 100644 agreement_serviceprofile/static/description/index.html create mode 100644 agreement_serviceprofile/views/agreement_serviceprofile.xml diff --git a/agreement_serviceprofile/README.rst b/agreement_serviceprofile/README.rst new file mode 100644 index 00000000..d77abf28 --- /dev/null +++ b/agreement_serviceprofile/README.rst @@ -0,0 +1,91 @@ +========================= +Agreement Service Profile +========================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/agreement_serviceprofile + :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-agreement_serviceprofile + :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 adds an *Agreement Service Profile* object with the following properties: + +* name, +* link to a agreement, +* active. + +**Table of contents** + +.. contents:: + :local: + +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 +* Sandip Mangukiya +* 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. + +.. |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_serviceprofile/__init__.py b/agreement_serviceprofile/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/agreement_serviceprofile/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/agreement_serviceprofile/__manifest__.py b/agreement_serviceprofile/__manifest__.py new file mode 100644 index 00000000..c0a20239 --- /dev/null +++ b/agreement_serviceprofile/__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': 'Agreement Service Profile', + 'summary': "Adds an Agreement Service Profile object", + 'version': '12.0.1.0.0', + 'category': 'Contract', + 'author': 'Pavlov Media, ' + 'Open Source Integrators, ' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/oca/contract', + 'license': 'AGPL-3', + 'depends': ['agreement_legal'], + 'data': [ + 'security/ir.model.access.csv', + 'views/agreement_serviceprofile.xml', + ], + 'development_status': 'Beta', + 'maintainers': [ + 'max3903', + ], + 'installable': True, +} diff --git a/agreement_serviceprofile/i18n/agreement_serviceprofile.pot b/agreement_serviceprofile/i18n/agreement_serviceprofile.pot new file mode 100644 index 00000000..c2990b48 --- /dev/null +++ b/agreement_serviceprofile/i18n/agreement_serviceprofile.pot @@ -0,0 +1,88 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_serviceprofile +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__active +msgid "Active" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Agreement" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_agreement_serviceprofile +msgid "Agreement Service Profiles" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__create_uid +msgid "Created by" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__create_date +msgid "Created on" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__id +msgid "ID" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active +msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__write_date +msgid "Last Updated on" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__name +msgid "Name" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form +msgid "Service Profile" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.actions.act_window,name:agreement_serviceprofile.agreement_serviceprofile_action +#: model:ir.ui.menu,name:agreement_serviceprofile.agreement_serviceprofiles +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_tree +msgid "Service Profiles" +msgstr "" + diff --git a/agreement_serviceprofile/i18n/en_US.po b/agreement_serviceprofile/i18n/en_US.po new file mode 100644 index 00000000..24617c69 --- /dev/null +++ b/agreement_serviceprofile/i18n/en_US.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_serviceprofile +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-04-02 09:58+0000\n" +"PO-Revision-Date: 2019-04-02 09:58+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__active +msgid "Active" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Agreement" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_agreement_serviceprofile +msgid "Agreement Service Profiles" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__create_uid +msgid "Created by" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__create_date +msgid "Created on" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__id +msgid "ID" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active +msgid "" +"If unchecked, it will allow you to hide this service profile without " +"removing it." +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__write_date +msgid "Last Updated on" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__name +msgid "Name" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form +msgid "Service Profile" +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.actions.act_window,name:agreement_serviceprofile.agreement_serviceprofile_action +#: model:ir.ui.menu,name:agreement_serviceprofile.agreement_serviceprofiles +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_tree +msgid "Service Profiles" +msgstr "" diff --git a/agreement_serviceprofile/i18n/fr.po b/agreement_serviceprofile/i18n/fr.po new file mode 100644 index 00000000..bbeb929e --- /dev/null +++ b/agreement_serviceprofile/i18n/fr.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_serviceprofile +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-04-07 12:37+0000\n" +"Last-Translator: Yves Goldberg \n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.4\n" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__active +msgid "Active" +msgstr "Actif" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Agreement" +msgstr "Accord" + +#. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_agreement_serviceprofile +msgid "Agreement Service Profiles" +msgstr "Accord Profils de service" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__display_name +msgid "Display Name" +msgstr "Nom d'affichage" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__id +msgid "ID" +msgstr "ID" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active +msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgstr "" +"Si cette case est décochée, cela vous permettra de masquer ce profil de " +"service sans le supprimer." + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__name +msgid "Name" +msgstr "Nom" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form +msgid "Service Profile" +msgstr "Profil de service" + +#. module: agreement_serviceprofile +#: model:ir.actions.act_window,name:agreement_serviceprofile.agreement_serviceprofile_action +#: model:ir.ui.menu,name:agreement_serviceprofile.agreement_serviceprofiles +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_tree +msgid "Service Profiles" +msgstr "Profils de service" diff --git a/agreement_serviceprofile/models/__init__.py b/agreement_serviceprofile/models/__init__.py new file mode 100644 index 00000000..7bf42742 --- /dev/null +++ b/agreement_serviceprofile/models/__init__.py @@ -0,0 +1 @@ +from . import agreement_serviceprofile diff --git a/agreement_serviceprofile/models/agreement_serviceprofile.py b/agreement_serviceprofile/models/agreement_serviceprofile.py new file mode 100644 index 00000000..07a369d4 --- /dev/null +++ b/agreement_serviceprofile/models/agreement_serviceprofile.py @@ -0,0 +1,19 @@ +# Copyright (C) 2018 - TODAY, Pavlov Media +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from odoo import fields, models + + +class AgreementServiceProfile(models.Model): + _name = 'agreement.serviceprofile' + _description = 'Agreement Service Profiles' + + name = fields.Char(string="Name", required=True) + agreement_id = fields.Many2one('agreement', string="Agreement", + ondelete="cascade") + active = fields.Boolean( + string="Active", + default=True, + help="If unchecked, it will allow you to hide this service profile" + " without removing it.") diff --git a/agreement_serviceprofile/readme/CONTRIBUTORS.rst b/agreement_serviceprofile/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..1869cddb --- /dev/null +++ b/agreement_serviceprofile/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Patrick Wilson +* Bhavesh Odedra +* Wolfgang Hall +* Maxime Chambreuil +* Sandip Mangukiya +* Serpent Consulting Services Pvt. Ltd. diff --git a/agreement_serviceprofile/readme/DESCRIPTION.rst b/agreement_serviceprofile/readme/DESCRIPTION.rst new file mode 100644 index 00000000..b1ad5622 --- /dev/null +++ b/agreement_serviceprofile/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +This module adds an *Agreement Service Profile* object with the following properties: + +* name, +* link to a agreement, +* active. diff --git a/agreement_serviceprofile/security/ir.model.access.csv b/agreement_serviceprofile/security/ir.model.access.csv new file mode 100644 index 00000000..5ff20177 --- /dev/null +++ b/agreement_serviceprofile/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_servprof_allusers,service profile all users,model_agreement_serviceprofile,agreement_legal.group_agreement_user,1,1,1,0 +access_agreement_servprof_manager,service profile manager,model_agreement_serviceprofile,agreement_legal.group_agreement_manager,1,1,1,1 diff --git a/agreement_serviceprofile/static/description/icon.png b/agreement_serviceprofile/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!>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0n6{Q9Rx5w>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 + + + + + +Agreement Service Profile + + + +
+

Agreement Service Profile

+ + +

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

+

This module adds an Agreement Service Profile object with the following properties:

+
    +
  • name,
  • +
  • link to a agreement,
  • +
  • active.
  • +
+

Table of contents

+ +
+

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

+ +
+
+

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_serviceprofile/views/agreement_serviceprofile.xml b/agreement_serviceprofile/views/agreement_serviceprofile.xml new file mode 100644 index 00000000..d559189d --- /dev/null +++ b/agreement_serviceprofile/views/agreement_serviceprofile.xml @@ -0,0 +1,75 @@ + + + + + + Agreement Service Profile Tree + agreement.serviceprofile + + + + + + + + + + + + Agreement Service Profile Form + agreement.serviceprofile + +
+ +
+ +
+
+
+ + + + + + +
+
+
+
+ + + + Agreement Service Profile Search + agreement.serviceprofile + + + + + + + + + + Service Profiles + agreement.serviceprofile + tree,form + + + + +
From 79ab5d5c322f41f5579b4f5383cdaee5281c58d7 Mon Sep 17 00:00:00 2001 From: scampbell Date: Mon, 10 Jun 2019 12:33:51 -0700 Subject: [PATCH 02/35] [ADD] Notes to ServPro, add ServPro to Agreement [IMP] Flake8 [IMP] github changes [IMP] Placeholder in notes remove


[UPD] Update agreement_serviceprofile.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-12.0/contract-12.0-agreement_serviceprofile Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_serviceprofile/ [UPD] README.rst --- agreement_serviceprofile/__manifest__.py | 1 + .../i18n/agreement_serviceprofile.pot | 14 +++++++++++ agreement_serviceprofile/i18n/en_US.po | 14 +++++++++++ agreement_serviceprofile/i18n/fr.po | 20 ++++++++++++++-- agreement_serviceprofile/models/__init__.py | 1 + agreement_serviceprofile/models/agreement.py | 12 ++++++++++ .../models/agreement_serviceprofile.py | 12 ++++++---- .../static/description/index.html | 2 +- agreement_serviceprofile/views/agreement.xml | 24 +++++++++++++++++++ .../views/agreement_serviceprofile.xml | 3 +++ 10 files changed, 95 insertions(+), 8 deletions(-) create mode 100644 agreement_serviceprofile/models/agreement.py create mode 100644 agreement_serviceprofile/views/agreement.xml diff --git a/agreement_serviceprofile/__manifest__.py b/agreement_serviceprofile/__manifest__.py index c0a20239..58748f12 100644 --- a/agreement_serviceprofile/__manifest__.py +++ b/agreement_serviceprofile/__manifest__.py @@ -15,6 +15,7 @@ 'data': [ 'security/ir.model.access.csv', 'views/agreement_serviceprofile.xml', + 'views/agreement.xml' ], 'development_status': 'Beta', 'maintainers': [ diff --git a/agreement_serviceprofile/i18n/agreement_serviceprofile.pot b/agreement_serviceprofile/i18n/agreement_serviceprofile.pot index c2990b48..bb4fde1e 100644 --- a/agreement_serviceprofile/i18n/agreement_serviceprofile.pot +++ b/agreement_serviceprofile/i18n/agreement_serviceprofile.pot @@ -19,6 +19,12 @@ msgid "Active" msgstr "" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_fsm_order_form_view +msgid "Add Notes Here..." +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_agreement #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__agreement_id #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Agreement" @@ -74,6 +80,12 @@ msgstr "" msgid "Name" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__notes +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form +msgid "Notes" +msgstr "" + #. module: agreement_serviceprofile #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form msgid "Service Profile" @@ -81,7 +93,9 @@ msgstr "" #. module: agreement_serviceprofile #: model:ir.actions.act_window,name:agreement_serviceprofile.agreement_serviceprofile_action +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement__serviceprofile_ids #: model:ir.ui.menu,name:agreement_serviceprofile.agreement_serviceprofiles +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_fsm_order_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_tree msgid "Service Profiles" msgstr "" diff --git a/agreement_serviceprofile/i18n/en_US.po b/agreement_serviceprofile/i18n/en_US.po index 24617c69..44d1775d 100644 --- a/agreement_serviceprofile/i18n/en_US.po +++ b/agreement_serviceprofile/i18n/en_US.po @@ -22,6 +22,12 @@ msgid "Active" msgstr "" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_fsm_order_form_view +msgid "Add Notes Here..." +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_agreement #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__agreement_id #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Agreement" @@ -79,6 +85,12 @@ msgstr "" msgid "Name" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__notes +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form +msgid "Notes" +msgstr "" + #. module: agreement_serviceprofile #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form msgid "Service Profile" @@ -86,7 +98,9 @@ msgstr "" #. module: agreement_serviceprofile #: model:ir.actions.act_window,name:agreement_serviceprofile.agreement_serviceprofile_action +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement__serviceprofile_ids #: model:ir.ui.menu,name:agreement_serviceprofile.agreement_serviceprofiles +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_fsm_order_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_tree msgid "Service Profiles" msgstr "" diff --git a/agreement_serviceprofile/i18n/fr.po b/agreement_serviceprofile/i18n/fr.po index bbeb929e..9419345a 100644 --- a/agreement_serviceprofile/i18n/fr.po +++ b/agreement_serviceprofile/i18n/fr.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_serviceprofile +# * agreement_serviceprofile # msgid "" msgstr "" @@ -22,6 +22,12 @@ msgid "Active" msgstr "Actif" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_fsm_order_form_view +msgid "Add Notes Here..." +msgstr "" + +#. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_agreement #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__agreement_id #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Agreement" @@ -54,7 +60,9 @@ msgstr "ID" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active -msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgid "" +"If unchecked, it will allow you to hide this service profile without " +"removing it." msgstr "" "Si cette case est décochée, cela vous permettra de masquer ce profil de " "service sans le supprimer." @@ -79,6 +87,12 @@ msgstr "Dernière mise à jour le" msgid "Name" msgstr "Nom" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__notes +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form +msgid "Notes" +msgstr "" + #. module: agreement_serviceprofile #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form msgid "Service Profile" @@ -86,7 +100,9 @@ msgstr "Profil de service" #. module: agreement_serviceprofile #: model:ir.actions.act_window,name:agreement_serviceprofile.agreement_serviceprofile_action +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement__serviceprofile_ids #: model:ir.ui.menu,name:agreement_serviceprofile.agreement_serviceprofiles +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_fsm_order_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_tree msgid "Service Profiles" msgstr "Profils de service" diff --git a/agreement_serviceprofile/models/__init__.py b/agreement_serviceprofile/models/__init__.py index 7bf42742..a0e6354c 100644 --- a/agreement_serviceprofile/models/__init__.py +++ b/agreement_serviceprofile/models/__init__.py @@ -1 +1,2 @@ from . import agreement_serviceprofile +from . import agreement diff --git a/agreement_serviceprofile/models/agreement.py b/agreement_serviceprofile/models/agreement.py new file mode 100644 index 00000000..ac4361a2 --- /dev/null +++ b/agreement_serviceprofile/models/agreement.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 Agreement(models.Model): + _inherit = 'agreement' + + serviceprofile_ids = fields.One2many('agreement.serviceprofile', + 'agreement_id', + string="Service Profiles") diff --git a/agreement_serviceprofile/models/agreement_serviceprofile.py b/agreement_serviceprofile/models/agreement_serviceprofile.py index 07a369d4..a645b5ee 100644 --- a/agreement_serviceprofile/models/agreement_serviceprofile.py +++ b/agreement_serviceprofile/models/agreement_serviceprofile.py @@ -12,8 +12,10 @@ class AgreementServiceProfile(models.Model): name = fields.Char(string="Name", required=True) agreement_id = fields.Many2one('agreement', string="Agreement", ondelete="cascade") - active = fields.Boolean( - string="Active", - default=True, - help="If unchecked, it will allow you to hide this service profile" - " without removing it.") + active = fields.Boolean(string="Active", + default=True, + help="If unchecked, it will allow you " + + "to hide this service profile" + " without removing it.") + + notes = fields.Text(string="Notes") diff --git a/agreement_serviceprofile/static/description/index.html b/agreement_serviceprofile/static/description/index.html index 5170e424..b1dcbc81 100644 --- a/agreement_serviceprofile/static/description/index.html +++ b/agreement_serviceprofile/static/description/index.html @@ -3,7 +3,7 @@ - + Agreement Service Profile