From 4950dd2e3d7da2af992394612890e84532cb3369 Mon Sep 17 00:00:00 2001 From: Henrik Norlin Date: Wed, 4 Jan 2023 17:22:27 +0100 Subject: [PATCH 1/4] [IMP] base_custom_info: get_custom_info, get_custom_info_property_by_code --- base_custom_info/models/custom_info.py | 28 ++++++++++++++++++- base_custom_info/models/custom_info_option.py | 1 + .../models/custom_info_property.py | 1 + base_custom_info/models/custom_info_value.py | 2 ++ .../tests/test_value_conversion.py | 18 ++++++++++++ .../views/custom_info_option_view.xml | 2 ++ .../views/custom_info_property_view.xml | 3 ++ 7 files changed, 54 insertions(+), 1 deletion(-) diff --git a/base_custom_info/models/custom_info.py b/base_custom_info/models/custom_info.py index 0fef353f2c3..ec252841a64 100644 --- a/base_custom_info/models/custom_info.py +++ b/base_custom_info/models/custom_info.py @@ -2,9 +2,11 @@ # Copyright 2015 Carlos Dauden # Copyright 2016 Jairo Llopis # Copyright 2017 Pedro M. Baeza +# Copyright 2023 Henrik Norlin # License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html -from odoo import api, fields, models +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError class CustomInfo(models.AbstractModel): @@ -93,6 +95,30 @@ def unlink(self): info_values.unlink() return res + def get_custom_info(self, property=None, code=None, option_field="display_name"): + """Get the value of the given property or code.""" + self.ensure_one() + if not property: + if not code: + raise ValidationError(_("get_custom_info: No property or code!")) + property = self.get_custom_info_property_by_code(code) + if property: + record = self.get_custom_info_value(property) + if record: + if property.field_type == "id": + return getattr(record.value_id, option_field) + else: + return getattr(record, "value_{}".format(property.field_type)) + + def get_custom_info_property_by_code(self, code): + self.ensure_one() + return self.env["custom.info.property"].search( + [ + ("template_id", "=", self.custom_info_template_id.id), + ("code", "=", code), + ] + ) + @api.returns("custom.info.value") def get_custom_info_value(self, properties): """Get ``custom.info.value`` records for the given property.""" diff --git a/base_custom_info/models/custom_info_option.py b/base_custom_info/models/custom_info_option.py index 33cdd0c9f88..24be3bcede2 100644 --- a/base_custom_info/models/custom_info_option.py +++ b/base_custom_info/models/custom_info_option.py @@ -11,6 +11,7 @@ class CustomInfoOption(models.Model): _order = "name" name = fields.Char(index=True, translate=True, required=True) + code = fields.Char() property_ids = fields.Many2many( comodel_name="custom.info.property", string="Properties", diff --git a/base_custom_info/models/custom_info_property.py b/base_custom_info/models/custom_info_property.py index 13cd12cab84..5414496ff2b 100644 --- a/base_custom_info/models/custom_info_property.py +++ b/base_custom_info/models/custom_info_property.py @@ -21,6 +21,7 @@ class CustomInfoProperty(models.Model): ] name = fields.Char(required=True, translate=True) + code = fields.Char() sequence = fields.Integer(index=True) category_id = fields.Many2one( comodel_name="custom.info.category", diff --git a/base_custom_info/models/custom_info_value.py b/base_custom_info/models/custom_info_value.py index 5bd04896460..04f68e42047 100644 --- a/base_custom_info/models/custom_info_value.py +++ b/base_custom_info/models/custom_info_value.py @@ -57,6 +57,7 @@ class CustomInfoValue(models.Model): ) category_id = fields.Many2one(related="property_id.category_id", store=True) name = fields.Char(related="property_id.name") + code = fields.Char(related="property_id.code") field_type = fields.Selection(related="property_id.field_type") widget = fields.Selection( related="property_id.widget", @@ -141,6 +142,7 @@ def _inverse_owner_id(self): "value_int", "value_float", "value_bool", + "value_date", "value_id", ) def _compute_value(self): diff --git a/base_custom_info/tests/test_value_conversion.py b/base_custom_info/tests/test_value_conversion.py index a29d2a22543..76f7d60fdfd 100644 --- a/base_custom_info/tests/test_value_conversion.py +++ b/base_custom_info/tests/test_value_conversion.py @@ -134,3 +134,21 @@ def test_from_id(self): ) self.creation_found("Needs videogames") self.assertEqual(self.value.value, self.value.value_id.name) + + def test_get_custom_info(self): + """Test get value with properties argument and with code argument""" + self.prop_id.code = "WEAKNESSES" + self.fill_value(self.prop_id, "Needs videogames") + self.env.ref("base_custom_info.opt_videogames").code = "GAMES" + # Test property + value = self.agrolait.get_custom_info(property=self.prop_id) + self.assertEqual(value, "Needs videogames") + value = self.agrolait.get_custom_info( + property=self.prop_id, option_field="code" + ) + self.assertEqual(value, "GAMES") + # Test code + value = self.agrolait.get_custom_info(code="WEAKNESSES") + self.assertEqual(value, "Needs videogames") + value = self.agrolait.get_custom_info(code="WEAKNESSES", option_field="code") + self.assertEqual(value, "GAMES") diff --git a/base_custom_info/views/custom_info_option_view.xml b/base_custom_info/views/custom_info_option_view.xml index de30adc8172..5de10e105e4 100644 --- a/base_custom_info/views/custom_info_option_view.xml +++ b/base_custom_info/views/custom_info_option_view.xml @@ -9,6 +9,7 @@ + @@ -35,6 +36,7 @@ + diff --git a/base_custom_info/views/custom_info_property_view.xml b/base_custom_info/views/custom_info_property_view.xml index 6eef49404d2..cd21fae26b0 100644 --- a/base_custom_info/views/custom_info_property_view.xml +++ b/base_custom_info/views/custom_info_property_view.xml @@ -10,6 +10,7 @@ + @@ -35,6 +36,7 @@ + @@ -89,6 +91,7 @@ + Date: Mon, 12 Jun 2023 11:07:53 +0200 Subject: [PATCH 2/4] [FIX] base_fontawesome: deleted .pyc --- .../__pycache__/__init__.cpython-37.pyc | Bin 167 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 base_fontawesome/__pycache__/__init__.cpython-37.pyc diff --git a/base_fontawesome/__pycache__/__init__.cpython-37.pyc b/base_fontawesome/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index 6ecb96cf3ef00d7ae85075f2961c47a2ae763803..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 167 zcmZ?b<>g`kf+v;jNg(<$h=2h`Aj1KOi&=m~3PUi1CZpdpP!s)Xrf=7T2z)=q+61opHr-#lvtb^pO&9j ml31Qv4ALGSpP83g5+AQuP Date: Sat, 2 Dec 2023 17:20:34 +0000 Subject: [PATCH 3/4] [UPD] Update base_custom_info.pot --- base_custom_info/i18n/base_custom_info.pot | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/base_custom_info/i18n/base_custom_info.pot b/base_custom_info/i18n/base_custom_info.pot index f57d6503316..78f6394f3ef 100644 --- a/base_custom_info/i18n/base_custom_info.pot +++ b/base_custom_info/i18n/base_custom_info.pot @@ -171,6 +171,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -889,3 +896,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" From 27d29fe3f344ff15c1ac80729565bacca2656d97 Mon Sep 17 00:00:00 2001 From: Weblate Date: Sat, 2 Dec 2023 17:27:36 +0000 Subject: [PATCH 4/4] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-tools-14.0/server-tools-14.0-base_custom_info Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_custom_info/ --- base_custom_info/i18n/am.po | 13 +++++++++++++ base_custom_info/i18n/ca.po | 13 +++++++++++++ base_custom_info/i18n/de.po | 13 +++++++++++++ base_custom_info/i18n/el_GR.po | 13 +++++++++++++ base_custom_info/i18n/es.po | 13 +++++++++++++ base_custom_info/i18n/es_AR.po | 13 +++++++++++++ base_custom_info/i18n/es_ES.po | 13 +++++++++++++ base_custom_info/i18n/fi.po | 13 +++++++++++++ base_custom_info/i18n/fr.po | 13 +++++++++++++ base_custom_info/i18n/fr_CA.po | 13 +++++++++++++ base_custom_info/i18n/gl.po | 13 +++++++++++++ base_custom_info/i18n/hr.po | 13 +++++++++++++ base_custom_info/i18n/hr_HR.po | 13 +++++++++++++ base_custom_info/i18n/it.po | 13 +++++++++++++ base_custom_info/i18n/nl.po | 13 +++++++++++++ base_custom_info/i18n/pt.po | 13 +++++++++++++ base_custom_info/i18n/pt_BR.po | 13 +++++++++++++ base_custom_info/i18n/pt_PT.po | 13 +++++++++++++ base_custom_info/i18n/ru.po | 13 +++++++++++++ base_custom_info/i18n/sl.po | 13 +++++++++++++ base_custom_info/i18n/tr.po | 13 +++++++++++++ base_custom_info/i18n/zh_CN.po | 13 +++++++++++++ 22 files changed, 286 insertions(+) diff --git a/base_custom_info/i18n/am.po b/base_custom_info/i18n/am.po index d1d21a27bfe..6899fc080ae 100644 --- a/base_custom_info/i18n/am.po +++ b/base_custom_info/i18n/am.po @@ -177,6 +177,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -893,3 +900,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/ca.po b/base_custom_info/i18n/ca.po index 57592691d65..fd4d67a0268 100644 --- a/base_custom_info/i18n/ca.po +++ b/base_custom_info/i18n/ca.po @@ -177,6 +177,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -893,3 +900,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/de.po b/base_custom_info/i18n/de.po index 22dc0aa3b7a..bd3aea2ef41 100644 --- a/base_custom_info/i18n/de.po +++ b/base_custom_info/i18n/de.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -896,3 +903,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/el_GR.po b/base_custom_info/i18n/el_GR.po index 7df5e6a93ff..32f4890f042 100644 --- a/base_custom_info/i18n/el_GR.po +++ b/base_custom_info/i18n/el_GR.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -894,3 +901,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/es.po b/base_custom_info/i18n/es.po index 22c8e3d9d85..0fa3e834eda 100644 --- a/base_custom_info/i18n/es.po +++ b/base_custom_info/i18n/es.po @@ -182,6 +182,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "Pulse para definir una nueva plantilla de inf. personalizada." +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -922,6 +929,12 @@ msgstr "" msgid "You must set a existing model." msgstr "" +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #~ msgid "Custom Info Categories" #~ msgstr "Categorías de inf. personalizada" diff --git a/base_custom_info/i18n/es_AR.po b/base_custom_info/i18n/es_AR.po index 2b25698fb1c..61659ac1363 100644 --- a/base_custom_info/i18n/es_AR.po +++ b/base_custom_info/i18n/es_AR.po @@ -181,6 +181,13 @@ msgstr "Elegir" msgid "Click to define a new custom info template." msgstr "Pulse para definir una nueva plantilla de inf. personalizada." +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -920,6 +927,12 @@ msgstr "" msgid "You must set a existing model." msgstr "Debe configurar un modelo existente." +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #~ msgid "Custom Info Categories" #~ msgstr "Categorías de inf. personalizada" diff --git a/base_custom_info/i18n/es_ES.po b/base_custom_info/i18n/es_ES.po index 1738ba78f08..813d39ed3d0 100644 --- a/base_custom_info/i18n/es_ES.po +++ b/base_custom_info/i18n/es_ES.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -894,3 +901,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/fi.po b/base_custom_info/i18n/fi.po index de4d7d9b27f..2550c023cea 100644 --- a/base_custom_info/i18n/fi.po +++ b/base_custom_info/i18n/fi.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -895,3 +902,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/fr.po b/base_custom_info/i18n/fr.po index 77264fa9a5e..c84088e730b 100644 --- a/base_custom_info/i18n/fr.po +++ b/base_custom_info/i18n/fr.po @@ -177,6 +177,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -895,3 +902,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/fr_CA.po b/base_custom_info/i18n/fr_CA.po index 377c7bfeda7..2aa3db548fb 100644 --- a/base_custom_info/i18n/fr_CA.po +++ b/base_custom_info/i18n/fr_CA.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -894,3 +901,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/gl.po b/base_custom_info/i18n/gl.po index 0328255e4de..d495aa7d887 100644 --- a/base_custom_info/i18n/gl.po +++ b/base_custom_info/i18n/gl.po @@ -177,6 +177,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -893,3 +900,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/hr.po b/base_custom_info/i18n/hr.po index 9217e74ae5a..7a0b942864a 100644 --- a/base_custom_info/i18n/hr.po +++ b/base_custom_info/i18n/hr.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -895,3 +902,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/hr_HR.po b/base_custom_info/i18n/hr_HR.po index c94ca1cd296..2b7289e9006 100644 --- a/base_custom_info/i18n/hr_HR.po +++ b/base_custom_info/i18n/hr_HR.po @@ -179,6 +179,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -896,3 +903,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/it.po b/base_custom_info/i18n/it.po index 0e4a6b6c806..38ea57bc770 100644 --- a/base_custom_info/i18n/it.po +++ b/base_custom_info/i18n/it.po @@ -185,6 +185,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "Clicca per definire un nuovo template informazioni personalizzate." +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -924,6 +931,12 @@ msgstr "" msgid "You must set a existing model." msgstr "" +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #~ msgid "Custom Info Categories" #~ msgstr "Categorie Informazioni personalizzate" diff --git a/base_custom_info/i18n/nl.po b/base_custom_info/i18n/nl.po index b214893fd5b..19b74e5a343 100644 --- a/base_custom_info/i18n/nl.po +++ b/base_custom_info/i18n/nl.po @@ -177,6 +177,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -895,6 +902,12 @@ msgstr "" msgid "You must set a existing model." msgstr "" +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #, fuzzy #~ msgid "Custom Info Properties" #~ msgstr "Eigenschappen" diff --git a/base_custom_info/i18n/pt.po b/base_custom_info/i18n/pt.po index 63e2962d4de..c0e069188a5 100644 --- a/base_custom_info/i18n/pt.po +++ b/base_custom_info/i18n/pt.po @@ -184,6 +184,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "Clique para definir um novo modelo de informação personalizado." +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -921,6 +928,12 @@ msgstr "" msgid "You must set a existing model." msgstr "" +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #~ msgid "Custom Info Categories" #~ msgstr "Categorias de Informações Personalizadas" diff --git a/base_custom_info/i18n/pt_BR.po b/base_custom_info/i18n/pt_BR.po index bef079d9ba4..e327fb86df2 100644 --- a/base_custom_info/i18n/pt_BR.po +++ b/base_custom_info/i18n/pt_BR.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -895,3 +902,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/pt_PT.po b/base_custom_info/i18n/pt_PT.po index 28cfc83ab50..e4908beb724 100644 --- a/base_custom_info/i18n/pt_PT.po +++ b/base_custom_info/i18n/pt_PT.po @@ -178,6 +178,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -894,3 +901,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/ru.po b/base_custom_info/i18n/ru.po index d227912a98a..ba71790a35c 100644 --- a/base_custom_info/i18n/ru.po +++ b/base_custom_info/i18n/ru.po @@ -179,6 +179,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -895,3 +902,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/sl.po b/base_custom_info/i18n/sl.po index f68de37fcba..f16497d3b81 100644 --- a/base_custom_info/i18n/sl.po +++ b/base_custom_info/i18n/sl.po @@ -181,6 +181,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -904,6 +911,12 @@ msgstr "" msgid "You must set a existing model." msgstr "" +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #, fuzzy #~ msgid "Custom Info Categories" #~ msgstr "Lastnosti predloge informacij po meri" diff --git a/base_custom_info/i18n/tr.po b/base_custom_info/i18n/tr.po index ec33b15b83f..080ebe88a1e 100644 --- a/base_custom_info/i18n/tr.po +++ b/base_custom_info/i18n/tr.po @@ -177,6 +177,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -894,3 +901,9 @@ msgstr "" #, python-format msgid "You must set a existing model." msgstr "" + +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" diff --git a/base_custom_info/i18n/zh_CN.po b/base_custom_info/i18n/zh_CN.po index 988898525a3..ed5ede9c71c 100644 --- a/base_custom_info/i18n/zh_CN.po +++ b/base_custom_info/i18n/zh_CN.po @@ -180,6 +180,13 @@ msgstr "" msgid "Click to define a new custom info template." msgstr "" +#. module: base_custom_info +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_option__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_property__code +#: model:ir.model.fields,field_description:base_custom_info.field_custom_info_value__code +msgid "Code" +msgstr "" + #. module: base_custom_info #: model:ir.model.fields.selection,name:base_custom_info.selection__custom_info_property__widget__html msgid "Complex text" @@ -901,6 +908,12 @@ msgstr "" msgid "You must set a existing model." msgstr "" +#. module: base_custom_info +#: code:addons/base_custom_info/models/custom_info.py:0 +#, python-format +msgid "get_custom_info: No property or code!" +msgstr "" + #, fuzzy #~ msgid "Custom Info Categories" #~ msgstr "定制信息模板属性"