TOOLS: add ref to function tag
bzr revid: ced-6210c6292618f986d515e59e501919668ec7d624
This commit is contained in:
parent
9daae4bd44
commit
074a24259b
|
@ -93,6 +93,7 @@ def _eval_xml(self,node, pool, cr, uid, idref):
|
||||||
args = []
|
args = []
|
||||||
a_eval = node.getAttribute('eval')
|
a_eval = node.getAttribute('eval')
|
||||||
if len(a_eval):
|
if len(a_eval):
|
||||||
|
idref['ref'] = lambda x: self.id_get(cr, False, x)
|
||||||
args = eval(a_eval, idref)
|
args = eval(a_eval, idref)
|
||||||
for n in [i for i in node.childNodes if (i.nodeType == i.ELEMENT_NODE)]:
|
for n in [i for i in node.childNodes if (i.nodeType == i.ELEMENT_NODE)]:
|
||||||
args.append(_eval_xml(self,n, pool, cr, uid, idref))
|
args.append(_eval_xml(self,n, pool, cr, uid, idref))
|
||||||
|
|
Loading…
Reference in New Issue