Browse Source

Add oe_json_serializer in external_dependencies.

Fix get_user_variables call.

--HG--
branch : odoo8
pull/80/head
Szeka Wong 8 years ago
parent
commit
d60fb75424
  1. 2
      __openerp__.py
  2. 2
      py3o_report_modif.py

2
__openerp__.py

@ -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',

2
py3o_report_modif.py

@ -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)

Loading…
Cancel
Save