[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:
Christophe Simonis 2008-12-05 13:56:41 +01:00
parent eb08809553
commit f770e5e65f
1 changed files with 1 additions and 1 deletions

View File

@ -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