diff --git a/base_custom_info/README.rst b/base_custom_info/README.rst index 14f3b5a90..005080fa4 100644 --- a/base_custom_info/README.rst +++ b/base_custom_info/README.rst @@ -43,7 +43,7 @@ To manage their values, you need to: .. 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/8.0 + :target: https://runbot.odoo-community.org/runbot/135/9.0 Development =========== @@ -62,11 +62,7 @@ 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 -`_. +help us smashing it by providing a detailed and welcomed feedback. Credits ======= diff --git a/base_custom_info/__openerp__.py b/base_custom_info/__openerp__.py index 79982b965..603362e2f 100644 --- a/base_custom_info/__openerp__.py +++ b/base_custom_info/__openerp__.py @@ -1,14 +1,14 @@ # -*- coding: utf-8 -*- # © 2015 Antiun Ingeniería S.L. - Sergio Teruel # © 2015 Antiun Ingeniería S.L. - Carlos Dauden -# © 2015 Antiun Ingeniería S.L. - Jairo Llopis +# © 2015-2016 Jairo Llopis # 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': '8.0.1.0.0', + 'version': '9.0.1.0.0', 'depends': [ 'base', ], @@ -27,6 +27,7 @@ ], 'author': 'Antiun Ingeniería S.L., ' 'Incaser Informatica S.L., ' + 'Tecnativa, ' 'Odoo Community Association (OCA)', 'website': 'http://www.antiun.com', 'license': 'AGPL-3', diff --git a/base_custom_info/models/custom_info.py b/base_custom_info/models/custom_info.py index 883a4055c..ed353cce2 100644 --- a/base_custom_info/models/custom_info.py +++ b/base_custom_info/models/custom_info.py @@ -57,10 +57,11 @@ class CustomInfoProperty(models.Model): "Another property with that name exists for that template."), ] - name = fields.Char(translate=True) + name = fields.Char(required=True, translate=True) template_id = fields.Many2one( comodel_name='custom.info.template', - string='Template') + string='Template', + required=True) info_value_ids = fields.One2many( comodel_name="custom.info.value", inverse_name="property_id", @@ -83,8 +84,8 @@ class CustomInfoValue(models.Model): comodel_name='custom.info.property', required=True, string='Property') - name = fields.Char(related='property_id.name') - value = fields.Char(translate=True) + name = fields.Char(related='property_id.name', readonly=True) + value = fields.Char(translate=True, index=True) class CustomInfo(models.AbstractModel): diff --git a/base_custom_info/views/custom_info_property_view.xml b/base_custom_info/views/custom_info_property_view.xml index 81fcf0bc5..72bda5437 100644 --- a/base_custom_info/views/custom_info_property_view.xml +++ b/base_custom_info/views/custom_info_property_view.xml @@ -1,6 +1,5 @@ - base.custom.info.property.tree @@ -39,5 +38,4 @@ form - diff --git a/base_custom_info/views/custom_info_template_view.xml b/base_custom_info/views/custom_info_template_view.xml index ef81b7008..3e9ff7cbd 100644 --- a/base_custom_info/views/custom_info_template_view.xml +++ b/base_custom_info/views/custom_info_template_view.xml @@ -1,6 +1,5 @@ - base.custom.info.template.tree @@ -56,5 +55,4 @@ - diff --git a/base_custom_info/views/custom_info_value_view.xml b/base_custom_info/views/custom_info_value_view.xml index 2c3c6f8a3..53ed922dd 100644 --- a/base_custom_info/views/custom_info_value_view.xml +++ b/base_custom_info/views/custom_info_value_view.xml @@ -1,6 +1,5 @@ - base.custom.info.value.tree @@ -23,5 +22,4 @@ form - diff --git a/base_custom_info/views/menu.xml b/base_custom_info/views/menu.xml index 5cb61a2f3..8f4b2220c 100644 --- a/base_custom_info/views/menu.xml +++ b/base_custom_info/views/menu.xml @@ -1,6 +1,5 @@ - -