mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Add oe_json_serializer in external_dependencies.
Fix get_user_variables call. --HG-- branch : odoo8
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user