Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions base_custom_info/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

================
Base Custom Info
================

This module allows to create custom fields in models without altering model's
structure.

Installation
============

This module serves as a base for other modules that implement this behavior in
concrete models.

This module is a technical dependency and is to be installed in parallel to
other modules.

Usage
=====

This module defines *Custom Info Templates* that define what properties are
expected for a given record.

To define a template, you need to:

* Go to *Settings > Custom Info > Templates*.
* Create one.
* Add some *Properties* to it.

All database records with that template enabled will automatically fill those
properties.

To manage the properties, you need to:

* Go to *Settings > Custom Info > Properties*.

To manage their values, you need to:

* Go to *Settings > Custom Info > Values*.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/135/9.0

Development
===========

To create a module that supports custom information, just depend on this module
and inherit from the ``custom.info`` model.

Known issues / Roadmap
======================

* All data types of custom information values are text strings.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/product-attribute/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.

Credits
=======

Contributors
------------

* Rafael Blasco <rafabn@antiun.com>
* Carlos Dauden <carlos@incaser.es>
* Sergio Teruel <sergio@incaser.es>
* Jairo Llopis <yajo.sk8@gmail.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
6 changes: 6 additions & 0 deletions base_custom_info/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Sergio Teruel
# © 2015 Antiun Ingeniería S.L. - Carlos Dauden
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
35 changes: 35 additions & 0 deletions base_custom_info/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Sergio Teruel
# © 2015 Antiun Ingeniería S.L. - Carlos Dauden
# © 2015-2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
'name': "Base Custom Info",
'summary': "Add custom field in models",
'category': 'Tools',
'version': '9.0.1.0.0',
'depends': [
'base',
],
'data': [
'views/custom_info_template_view.xml',
'views/custom_info_property_view.xml',
'views/custom_info_value_view.xml',
'views/menu.xml',
'security/ir.model.access.csv',
],
"images": [
"images/menu.png",
"images/properties.png",
"images/templates.png",
"images/values.png",
],
'author': 'Antiun Ingeniería S.L., '
'Incaser Informatica S.L., '
'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'http://www.antiun.com',
'license': 'AGPL-3',
'installable': True,
}
202 changes: 202 additions & 0 deletions base_custom_info/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_custom_info
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-03-12 02:05+0000\n"
"PO-Revision-Date: 2016-03-10 18:17+0000\n"
"Last-Translator: <>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-8-0/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: base_custom_info
#: model:ir.actions.act_window,help:base_custom_info.custom_info_template_action
msgid ""
"<p class=\"oe_view_nocontent_create\">\n"
" Click to define a new custom info template.\n"
" </p><p>\n"
" You must define a custom info template for each\n"
" product properties group.\n"
" </p>\n"
" "
msgstr ""

#. module: base_custom_info
#: model:ir.model,name:base_custom_info.model_custom_info_model_link
msgid "A model that gets its ``ir.model`` computed"
msgstr ""

#. module: base_custom_info
#: sql_constraint:custom.info.value:0
msgid "Another property with that name exists for that resource."
msgstr ""

#. module: base_custom_info
#: sql_constraint:custom.info.property:0
msgid "Another property with that name exists for that template."
msgstr ""

#. module: base_custom_info
#: sql_constraint:custom.info.template:0
msgid "Another template with that name exists for that model."
msgstr ""

#. module: base_custom_info
#: field:custom.info.property,create_uid:0
#: field:custom.info.template,create_uid:0
#: field:custom.info.value,create_uid:0
msgid "Created by"
msgstr "Erstellt von"

#. module: base_custom_info
#: field:custom.info.property,create_date:0
#: field:custom.info.template,create_date:0
#: field:custom.info.value,create_date:0
msgid "Created on"
msgstr "Erstellt am:"

#. module: base_custom_info
#: model:ir.ui.menu,name:base_custom_info.menu_base_custom_info
msgid "Custom Info"
msgstr ""

#. module: base_custom_info
#: view:custom.info.template:base_custom_info.base_custom_info_template_form
msgid "Custom Info Template"
msgstr ""

#. module: base_custom_info
#: view:custom.info.property:base_custom_info.base_custom_info_template_line_form
msgid "Custom Info Template Properties"
msgstr ""

#. module: base_custom_info
#: view:custom.info.property:base_custom_info.base_custom_info_template_line_tree
#: view:custom.info.template:base_custom_info.base_custom_info_template_tree
msgid "Custom Info Templates"
msgstr ""

#. module: base_custom_info
#: field:custom.info,custom_info_template_id:0
msgid "Custom Information Template"
msgstr ""

#. module: base_custom_info
#: field:custom.info,custom_info_ids:0
msgid "Custom Properties"
msgstr ""

#. module: base_custom_info
#: view:custom.info.value:base_custom_info.base_custom_info_value_tree
msgid "Custom Property Values"
msgstr ""

#. module: base_custom_info
#: model:ir.model,name:base_custom_info.model_custom_info_property
msgid "Custom information property"
msgstr ""

#. module: base_custom_info
#: model:ir.model,name:base_custom_info.model_custom_info_template
msgid "Custom information template"
msgstr ""

#. module: base_custom_info
#: model:ir.model,name:base_custom_info.model_custom_info_value
msgid "Custom information value"
msgstr ""

#. module: base_custom_info
#: field:custom.info,id:0 field:custom.info.model_link,id:0
#: field:custom.info.property,id:0 field:custom.info.template,id:0
#: field:custom.info.value,id:0
msgid "ID"
msgstr "ID"

#. module: base_custom_info
#: view:custom.info.template:base_custom_info.base_custom_info_template_form
msgid "Info Lines"
msgstr ""

#. module: base_custom_info
#: model:ir.model,name:base_custom_info.model_custom_info
msgid "Inheritable abstract model to add custom info in any model"
msgstr ""

#. module: base_custom_info
#: field:custom.info.property,write_uid:0
#: field:custom.info.template,write_uid:0 field:custom.info.value,write_uid:0
msgid "Last Updated by"
msgstr "Zuletzt aktualisiert von"

#. module: base_custom_info
#: field:custom.info.property,write_date:0
#: field:custom.info.template,write_date:0
#: field:custom.info.value,write_date:0
msgid "Last Updated on"
msgstr "Zuletzt aktualisiert am"

#. module: base_custom_info
#: field:custom.info.model_link,model:0
#: field:custom.info.model_link,model_id:0 field:custom.info.template,model:0
#: field:custom.info.template,model_id:0 field:custom.info.value,model:0
#: field:custom.info.value,model_id:0
msgid "Model"
msgstr "Modell"

#. module: base_custom_info
#: field:custom.info.property,name:0 field:custom.info.template,name:0
msgid "Name"
msgstr "Name"

#. module: base_custom_info
#: field:custom.info.template,info_ids:0
#: model:ir.actions.act_window,name:base_custom_info.custom_info_template_line_action
#: model:ir.ui.menu,name:base_custom_info.menu_base_custom_info_template_line
msgid "Properties"
msgstr ""

#. module: base_custom_info
#: field:custom.info.value,property_id:0
msgid "Property"
msgstr ""

#. module: base_custom_info
#: field:custom.info.property,info_value_ids:0
msgid "Property Values"
msgstr ""

#. module: base_custom_info
#: field:custom.info.value,res_id:0
msgid "Resource ID"
msgstr "Ressourcen-ID"

#. module: base_custom_info
#: field:custom.info.property,template_id:0
msgid "Template"
msgstr ""

#. module: base_custom_info
#: model:ir.actions.act_window,name:base_custom_info.custom_info_template_action
#: model:ir.ui.menu,name:base_custom_info.menu_base_custom_info_template
msgid "Templates"
msgstr ""

#. module: base_custom_info
#: field:custom.info.value,value:0
msgid "Value"
msgstr ""

#. module: base_custom_info
#: model:ir.actions.act_window,name:base_custom_info.custom_info_value_action
#: model:ir.ui.menu,name:base_custom_info.menu_base_custom_info_value
msgid "Values"
msgstr "Werte"
Loading