Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osv needs to be imported in report_aeroo_direct_print.py #91

Open
chesty opened this issue Aug 25, 2016 · 0 comments
Open

osv needs to be imported in report_aeroo_direct_print.py #91

chesty opened this issue Aug 25, 2016 · 0 comments

Comments

@chesty
Copy link

chesty commented Aug 25, 2016

 File "/home/michael/odoo/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/michael/odoo/openerp/addons/base/ir/ir_actions.py", line 837, in run_action_code_multi
    eval(action.code.strip(), eval_context, mode="exec", nocopy=True)  # nocopy allows to return 'action'
  File "/home/michael/odoo/openerp/tools/safe_eval.py", line 314, in safe_eval
    return eval(c, globals_dict, locals_dict)
  File "", line 6, in <module>
  File "/home/michael/odoo/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/michael/odoo/openerp/addons/report_aeroo_direct_print/report_aeroo_direct_print.py", line 58, in report_to_printer
    else:
ValueError: "global name 'osv' is not defined" while evaluating
u"# 69adc1e107f7f7d035d7baf04342e1ca #\nreport_action_id = 207\ncontext['report_action_id'] = report_action_id\nprint_actions_obj = self.pool.get('aeroo.print_actions')\nprinter = print_actions_obj._get_default_printer(cr, uid, context)\nprint_actions_obj.report_to_printer(cr, uid, [obj.id], report_action_id, printer, context=context)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant