Skip to content

Commit

Permalink
[FIX] #51: report_aeroo_direct_print : NameError: global name 'contex…
Browse files Browse the repository at this point in the history
…t' is not defined
  • Loading branch information
a0c committed Sep 27, 2015
1 parent bd019e1 commit 46ff1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report_aeroo_direct_print/report_aeroo_direct_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ def _unset_report_server_action(recs):
if event_ids:
event_ids[0].value = "ir.actions.report.xml,%s" % recs.id
srv_act_code = act_srv_id.code.splitlines()
ctx = context.copy()
ctx['report_action_id'] = recs.id
#ctx = context.copy()
#ctx['report_action_id'] = recs.id
printer = recs.env['aeroo.print_actions']._get_default_printer() #TODO v8
srv_act_code.insert(2, "printer = '%s'" % printer)
srv_act_code.pop(-2) # remove line: printer = print_actions_obj._get_default_printer(cr, uid, context)
Expand Down

0 comments on commit 46ff1e5

Please sign in to comment.