diff --git a/bin/tools/convert.py b/bin/tools/convert.py index a1a29b5fa33..726b586a962 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -50,7 +50,14 @@ def _eval_xml(self,node, pool, cr, uid, idref): idref['ref'] = lambda x: self.id_get(cr, False, x) return eval(a_eval, idref) if t == 'xml': + #def _process(s): + # groups = re.search + # %(.*?)d + # for group + # replace(group(0), self.id_get(cr, False, group(0)) + #txt = '\n'+_process("".join([i.toxml().encode("utf8") for i in node.childNodes])) txt = '\n'+"".join([i.toxml().encode("utf8") for i in node.childNodes]) % idref + return txt if t in ('char', 'int', 'float'): d = ""