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