diff --git a/xml_dsl/__manifest__.py b/xml_dsl/__manifest__.py index 586f206..82dee1a 100644 --- a/xml_dsl/__manifest__.py +++ b/xml_dsl/__manifest__.py @@ -19,7 +19,7 @@ 'name': 'Odoo XML DSL base module and fns', 'summary': 'Odoo XML Domain Specific Language base module and functions', 'description': """ Odoo XML Domain Specific Language base module and functions """, - 'version': '10.0.0.1.0', + 'version': '12.0.0.1.0', 'category': 'Yaltik', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/xml_dsl/odoo.py b/xml_dsl/odoo.py index b4a3be7..5a866ab 100644 --- a/xml_dsl/odoo.py +++ b/xml_dsl/odoo.py @@ -74,7 +74,7 @@ def xml_write(mpath, filename, tree): """ Write XML file according to filename and given tree """ import os.path from xml.etree import ElementTree as ET - output_xml = ET.tostring(tree) + output_xml = ET.tostring(tree).decode('utf-8') output_path = os.path.dirname(os.path.abspath(mpath)) fpath = u'%s/%s' % (output_path, filename) with open(fpath, 'w') as xml_file: