Fix get_user_variables call. --HG-- branch : odoo8
@ -39,7 +39,7 @@ The py3o.template package is required; install it with:
'report'
],
'external_dependencies': {
'python': ['py3o.template']
'python': ['py3o.template', 'oe_json_serializer']
},
'data': [
'security/ir.model.access.csv',
@ -83,7 +83,7 @@ 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_variable()]
user_variable = [x[5:] for x in t.get_user_variables()]
print user_variable
values = self.get_values(cr, uid, ids, data, context)