Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
[8.0] Aeroo Reports: report_aeroo_direct_print error: NameError: global name 'context' is not defined
I've managed to setup CUPS and have installed my HP CM1415 printer in the Aeroo Reports direct printing configuration wizard.
Using my own ODS (input template format) / XLS (output format) i've created a report for sale.order. The report is stored in the database, and all other settings are default.
When I tick the Report Wizard option I get the following error:
NameError: global name 'context' is not defined
The full traceback is here for reference:
I'm running on Ubuntu 14.04 with Odoo 8.0, using this installation method:
Any insight or suggestions would be very much appreciated. I've opened a github issue on the Official Aeroo Reports repository here:
most probably it's because v7 code were not (or not completelly) ported to v8... in v8 context is replaced by recs.env.context (or recs._context as it's shortcut)
according the error log, you can try to replace following line:
ctx = context.copy()
ctx = recs.env.context.copy()
in File "/opt/odoo/custom/addons/report_aeroo_direct_print/report_aeroo_direct_print.py", line 289
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/1/15, 6:42 AM|
|Seen: 1702 times|
|Last updated: 4/1/15, 12:31 PM|