diff --git a/agreement_serviceprofile/README.rst b/agreement_serviceprofile/README.rst new file mode 100644 index 00000000..1e3619f1 --- /dev/null +++ b/agreement_serviceprofile/README.rst @@ -0,0 +1,99 @@ +========================= +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. + +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_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/en_US.po b/agreement_serviceprofile/i18n/en_US.po new file mode 100644 index 00000000..a8de445a --- /dev/null +++ b/agreement_serviceprofile/i18n/en_US.po @@ -0,0 +1,90 @@ +# 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" +"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/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 00000000..23ce9313 Binary files /dev/null and b/agreement_serviceprofile/static/description/icon.png differ diff --git a/agreement_serviceprofile/static/description/index.html b/agreement_serviceprofile/static/description/index.html new file mode 100644 index 00000000..92387b86 --- /dev/null +++ b/agreement_serviceprofile/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +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 maintainers:

+

ygol alexis-via

+

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