diff --git a/yaltik_dsl/__manifest__.py b/yaltik_dsl/__manifest__.py index d8879f2..fa8058b 100644 --- a/yaltik_dsl/__manifest__.py +++ b/yaltik_dsl/__manifest__.py @@ -19,7 +19,7 @@ 'name': 'Yaltik Odoo DSL base module and fns', 'summary': 'Yaltik Odoo Domain Specific Language base module and functions', 'description': """ Yaltik Odoo Domain Specific Language base module and functions """, - 'version': '10.0.0.2.3', + 'version': '10.0.0.2.4', 'category': 'Yaltik', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/yaltik_dsl/xml_base.py b/yaltik_dsl/xml_base.py index faaa295..a38fbb8 100644 --- a/yaltik_dsl/xml_base.py +++ b/yaltik_dsl/xml_base.py @@ -35,7 +35,7 @@ def xmlchild(parent, children): """ Handling of children (ie non root) XML Nodes with/o text and subchildren (recursive) """ for child in children: - if isinstance(child, str): + if isinstance(child, (str, unicode)): parent.text = child else: attrs = {unicode(k): unicode(v) for [k, v] in child['attrs'].items()}