[UPD]XML DSL v12
This commit is contained in:
parent
095f4ce7d9
commit
291d4fc394
@ -19,7 +19,7 @@
|
|||||||
'name': 'Odoo XML DSL base module and fns',
|
'name': 'Odoo XML DSL base module and fns',
|
||||||
'summary': 'Odoo XML Domain Specific Language base module and functions',
|
'summary': 'Odoo XML Domain Specific Language base module and functions',
|
||||||
'description': """ 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',
|
'category': 'Yaltik',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -74,7 +74,7 @@ def xml_write(mpath, filename, tree):
|
|||||||
""" Write XML file according to filename and given tree """
|
""" Write XML file according to filename and given tree """
|
||||||
import os.path
|
import os.path
|
||||||
from xml.etree import ElementTree as ET
|
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))
|
output_path = os.path.dirname(os.path.abspath(mpath))
|
||||||
fpath = u'%s/%s' % (output_path, filename)
|
fpath = u'%s/%s' % (output_path, filename)
|
||||||
with open(fpath, 'w') as xml_file:
|
with open(fpath, 'w') as xml_file:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user