Replace get_user_variables (=deprecated) with get_all_user_python_expression.
Add call on template render function. --HG-- branch : odoo8pull/80/head
parent
d60fb75424
commit
5089921bd2
|
@ -83,10 +83,11 @@ class py3o_report(report_sxw):
|
||||||
#TODO: Find a way to avoid calling Template
|
#TODO: Find a way to avoid calling Template
|
||||||
t = Template(in_temp.name, out_temp.name)
|
t = Template(in_temp.name, out_temp.name)
|
||||||
# Remove 'py3o.'
|
# Remove 'py3o.'
|
||||||
user_variable = [x[5:] for x in t.get_user_variables()]
|
user_variable = [x[5:] for x in t.get_all_user_python_expression()]
|
||||||
print user_variable
|
print user_variable
|
||||||
|
|
||||||
values = self.get_values(cr, uid, ids, data, context)
|
values = self.get_values(cr, uid, ids, data, context)
|
||||||
|
t.render(values)
|
||||||
print values
|
print values
|
||||||
|
|
||||||
#WARNING: We rely on the fact that there is a for loop on the report
|
#WARNING: We rely on the fact that there is a for loop on the report
|
||||||
|
|
Loading…
Reference in New Issue