diff --git a/oca_dependencies.txt b/oca_dependencies.txt index ad22d1db45..846ab860f4 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -3,3 +3,4 @@ timesheet stock-logistics-warehouse account-budgeting account-analytic +server-tools diff --git a/project_custom_info/README.rst b/project_custom_info/README.rst new file mode 100644 index 0000000000..1fdb5cdee3 --- /dev/null +++ b/project_custom_info/README.rst @@ -0,0 +1,94 @@ +=================== +Project Custom Info +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fproject-lightgray.png?logo=github + :target: https://github.com/OCA/project/tree/12.0/project_custom_info + :alt: OCA/project +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_custom_info + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/140/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends projects to allow having custom properties on them. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +* Go to *Project*. +* Edit or create one. +* Got to *Custom Info* page. +* Choose or create a template for custom information. +* Set values for the properties of that template. + +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 +~~~~~~~ + +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* `Tecnativa `__: + + * Alexandre Díaz + +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-tardo| image:: https://github.com/tardo.png?size=40px + :target: https://github.com/tardo + :alt: tardo + +Current `maintainer `__: + +|maintainer-tardo| + +This module is part of the `OCA/project `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/project_custom_info/__init__.py b/project_custom_info/__init__.py new file mode 100644 index 0000000000..69f7babdfb --- /dev/null +++ b/project_custom_info/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/project_custom_info/__manifest__.py b/project_custom_info/__manifest__.py new file mode 100644 index 0000000000..18f7ad22d4 --- /dev/null +++ b/project_custom_info/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2019 Alexandre Díaz +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': "Project Custom Info", + 'summary': "Add custom field in products", + 'author': "Tecnativa, " + "Odoo Community Association (OCA)", + 'website': "https://github.com/OCA/project", + 'category': 'project', + 'version': '12.0.1.0.0', + 'license': 'AGPL-3', + 'depends': ['project'], + 'data': [ + 'views/project_project_view.xml', + ], + 'application': False, + 'development_status': 'Beta', + 'maintainers': ['Tardo'], +} diff --git a/project_custom_info/i18n/es.po b/project_custom_info/i18n/es.po new file mode 100644 index 0000000000..f3ea3b8a36 --- /dev/null +++ b/project_custom_info/i18n/es.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_custom_info +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-12-18 17:35+0000\n" +"PO-Revision-Date: 2019-12-18 18:35+0100\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"Language: es\n" +"X-Generator: Poedit 2.2.4\n" + +#. module: project_custom_info +#: model_terms:ir.ui.view,arch_db:project_custom_info.edit_project +msgid "Custom Information" +msgstr "Información Personalizada" + +#. module: project_custom_info +#: model:ir.model.fields,field_description:project_custom_info.field_project_project__custom_info_template_id +msgid "Custom Information Template" +msgstr "Plantilla de Información Personalizada" + +#. module: project_custom_info +#: model:ir.model.fields,field_description:project_custom_info.field_project_project__custom_info_ids +msgid "Custom Properties" +msgstr "Propiedades Personalizadas" + +#. module: project_custom_info +#: model:ir.model,name:project_custom_info.model_project_project +msgid "Project" +msgstr "Proyecto" diff --git a/project_custom_info/i18n/project_custom_info.pot b/project_custom_info/i18n/project_custom_info.pot new file mode 100644 index 0000000000..8a251266b0 --- /dev/null +++ b/project_custom_info/i18n/project_custom_info.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_custom_info +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-12-18 17:34+0000\n" +"PO-Revision-Date: 2019-12-18 17:34+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: project_custom_info +#: model_terms:ir.ui.view,arch_db:project_custom_info.edit_project +msgid "Custom Information" +msgstr "" + +#. module: project_custom_info +#: model:ir.model.fields,field_description:project_custom_info.field_project_project__custom_info_template_id +msgid "Custom Information Template" +msgstr "" + +#. module: project_custom_info +#: model:ir.model.fields,field_description:project_custom_info.field_project_project__custom_info_ids +msgid "Custom Properties" +msgstr "" + +#. module: project_custom_info +#: model:ir.model,name:project_custom_info.model_project_project +msgid "Project" +msgstr "" + diff --git a/project_custom_info/models/__init__.py b/project_custom_info/models/__init__.py new file mode 100644 index 0000000000..c183898c17 --- /dev/null +++ b/project_custom_info/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import project_project diff --git a/project_custom_info/models/project_project.py b/project_custom_info/models/project_project.py new file mode 100644 index 0000000000..a6ebaa90b1 --- /dev/null +++ b/project_custom_info/models/project_project.py @@ -0,0 +1,14 @@ +# Copyright 2019 Alexandre Díaz +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields + + +class Project(models.Model): + _name = "project.project" + _inherit = [_name, "custom.info"] + + custom_info_template_id = fields.Many2one( + context={"default_model": _name}) + custom_info_ids = fields.One2many( + context={"default_model": _name}) diff --git a/project_custom_info/readme/CONTRIBUTORS.rst b/project_custom_info/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..76784fb2d4 --- /dev/null +++ b/project_custom_info/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Tecnativa `__: + + * Alexandre Díaz diff --git a/project_custom_info/readme/DESCRIPTION.rst b/project_custom_info/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..e3211b0d12 --- /dev/null +++ b/project_custom_info/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module extends projects to allow having custom properties on them. diff --git a/project_custom_info/readme/USAGE.rst b/project_custom_info/readme/USAGE.rst new file mode 100644 index 0000000000..d9896b8da0 --- /dev/null +++ b/project_custom_info/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module, you need to: + +* Go to *Project*. +* Edit or create one. +* Got to *Custom Info* page. +* Choose or create a template for custom information. +* Set values for the properties of that template. diff --git a/project_custom_info/static/description/icon.png b/project_custom_info/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/project_custom_info/static/description/icon.png differ diff --git a/project_custom_info/static/description/index.html b/project_custom_info/static/description/index.html new file mode 100644 index 0000000000..2ecbd876ec --- /dev/null +++ b/project_custom_info/static/description/index.html @@ -0,0 +1,436 @@ + + + + + + +Project Custom Info + + + +
+

Project Custom Info

+ + +

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

+

This module extends projects to allow having custom properties on them.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Project.
  • +
  • Edit or create one.
  • +
  • Got to Custom Info page.
  • +
  • Choose or create a template for custom information.
  • +
  • Set values for the properties of that template.
  • +
+
+
+

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

+
    +
  • Tecnativa
  • +
+
+
+

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:

+

tardo

+

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

+

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

+
+
+
+ + diff --git a/project_custom_info/views/project_project_view.xml b/project_custom_info/views/project_project_view.xml new file mode 100644 index 0000000000..198322cf5e --- /dev/null +++ b/project_custom_info/views/project_project_view.xml @@ -0,0 +1,29 @@ + + + + + + project.project + + + + + + + + + + + + + + + +