NameError: global name 'ir' is not defined - cannot unlink/delete jasper_document
Bug #983015 reported by
Enapps Ltd OpenERP Partner London UK
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
JasperReport Server Connector |
Fix Released
|
High
|
Christophe CHAUVET |
Bug Description
Still a bug here with ir_del:
def unlink_values(self, cr, uid, id, context=None):
"""
Only remove link in ir.values, not the report
"""
doc = self.browse(cr, uid, id, context=context)
for v in self.action_
return True
NameError: global name 'ir' is not defined
To post a comment you must log in.
Perhaps it can be changed to: get('ir. values' ) values( cr, uid, doc.report_id.id, context=context):
irm. unlink( cr, uid, v)
def unlink_values(self, cr, uid, id, context=None):
"""
Only remove link in ir.values, not the report
"""
doc = self.browse(cr, uid, id, context=context)
irm = self.pool.
for v in self.action_
return True
?