Add print Button

Bug #892866 reported by Carlo - Didotech.com
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Aeroo Reports
Fix Released
Medium
sraps (Alistek)
Openerp6
Fix Released
Medium
sraps (Alistek)
Openerp6.1.x
Fix Released
Medium
sraps (Alistek)
Trunk
Fix Released
Medium
sraps (Alistek)

Bug Description

on OpenERP 6.0 aeroo_report RC6 and python 2.6

on report if i try tu use the widzard "Add print Button" i find this error:

 File "/opt/openerp/addons/report_aeroo/wizard/report_actions.py", line 76, in _do_action
    res = ir.ir_set(cr, uid, 'action', 'client_print_multi', report.report_name, [report.model], 'ir.actions.report.xml,%d' % data['id'], isobject=True)
NameError: global name 'ir' is not defined

Related branches

Changed in aeroo:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → sraps (Alistek) (erpsraps)
Revision history for this message
Graeme Gellatly (gdgellatly) wrote :

note the fix is very easy. on line 76

change res= ir.ir_set to
res = ir_set

Revision history for this message
David Acevedo Toledo (dacevedo) wrote :

the fix affects to the ir_del in the report_actions_remove.py file, line 66

change res = ir.ir_del

to

res = ir_del

Revision history for this message
Alan Lord (theopensourcerer) wrote :

Fixes in #1 & 2 work for me.

Thanks.

Revision history for this message
Alan Lord (theopensourcerer) wrote :

Also needed in OpenERP 6.1

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

Fixed in Aeroo 1.0.0 released yesterday.

Revision history for this message
William Beltrán (wigebeno) wrote : Re: [Bug 892866] Re: Add print Button

El 14/03/12 11:30, Alexis de Lattre escribió:
> Fixed in Aeroo 1.0.0 released yesterday.
>
ok ill try it Thanks! for awesome work.

Revision history for this message
Paul Catinean (wiz-keed) wrote :

I've checked the lines you guys specified and it's just as the fix suggested, yet...

Traceback (most recent call last):
  File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/server/bin/service/web_services.py", line 636, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/bin/service/web_services.py", line 663, in exp_execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/opt/openerp/server/bin/service/web_services.py", line 645, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/opt/openerp/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/opt/openerp/server/bin/wizard/__init__.py", line 72, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/opt/openerp/server/bin/addons/report_aeroo/wizard/report_actions.py", line 76, in _do_action
    res = ir_set(cr, uid, 'action', 'client_print_multi', report.report_name, [report.model], 'ir.actions.report.xml,%d' % data['id'], isobject=True)
NameError: global name 'ir' is not defined

How the hell did this happen, it's a fresh database and it has worked before with the same module...does anyone know?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.