Browse Source

Replace get_user_variables (=deprecated) with get_all_user_python_expression.

Add call on template render function.

--HG--
branch : odoo8
pull/80/head
Szeka Wong 8 years ago
parent
commit
5089921bd2
  1. 3
      py3o_report_modif.py

3
py3o_report_modif.py

@ -83,10 +83,11 @@ class py3o_report(report_sxw):
#TODO: Find a way to avoid calling Template
t = Template(in_temp.name, out_temp.name)
# 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
values = self.get_values(cr, uid, ids, data, context)
t.render(values)
print values
#WARNING: We rely on the fact that there is a for loop on the report

Loading…
Cancel
Save