[FIX] report/print_xml.py: use the record when evaluate the expression (patch from Activity Solutions)
bzr revid: christophe@tinyerp.com-20081205125641-pmdcma8mlsny7fei
This commit is contained in:
parent
eb08809553
commit
f770e5e65f
|
@ -121,7 +121,7 @@ class document(object):
|
|||
#Pinky: Why not this ? eval(expr, browser) ?
|
||||
# name = browser.name
|
||||
# data_dict = browser._data[self.get_value(browser, 'id')]
|
||||
return eval(expr)
|
||||
return eval(expr, {}, {'obj': record})
|
||||
|
||||
def parse_node(self, node, parent, browser, datas=None):
|
||||
# node is the node of the xml template to be parsed
|
||||
|
|
Loading…
Reference in New Issue