Skip to content

Commit

Permalink
[ADD] project_custom_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Dec 18, 2019
1 parent 081e04e commit 7d851fa
Show file tree
Hide file tree
Showing 14 changed files with 686 additions and 0 deletions.
1 change: 1 addition & 0 deletions oca_dependencies.txt
Expand Up @@ -3,3 +3,4 @@ timesheet
stock-logistics-warehouse
account-budgeting
account-analytic
server-tools
94 changes: 94 additions & 0 deletions 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 <https://github.com/OCA/project/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 <https://github.com/OCA/project/issues/new?body=module:%20project_custom_info%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`__:

* 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 <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-tardo|

This module is part of the `OCA/project <https://github.com/OCA/project/tree/12.0/project_custom_info>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions project_custom_info/__init__.py
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
20 changes: 20 additions & 0 deletions 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'],
}
38 changes: 38 additions & 0 deletions 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"
37 changes: 37 additions & 0 deletions 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 ""

3 changes: 3 additions & 0 deletions 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
14 changes: 14 additions & 0 deletions 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})
3 changes: 3 additions & 0 deletions project_custom_info/readme/CONTRIBUTORS.rst
@@ -0,0 +1,3 @@
* `Tecnativa <https://www.tecnativa.com>`__:

* Alexandre Díaz
1 change: 1 addition & 0 deletions project_custom_info/readme/DESCRIPTION.rst
@@ -0,0 +1 @@
This module extends projects to allow having custom properties on them.
7 changes: 7 additions & 0 deletions 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.
Binary file added project_custom_info/static/description/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d851fa

Please sign in to comment.