← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 687248] Re: Audittrail Log Rule BUG on action unsubcribe

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/687248

Title:
  Audittrail Log Rule BUG on action unsubcribe

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  Click UnSubcribe on Audit Rules getting errors :

path/of/server/addons/audittrail/audittrail.py", line 116, in unsubscribe
    value = "ir.actions.act_window" + ',' + str(w_id[0])
IndexError: list index out of range


------------------------
audittrail.py line 114 :

w_id = obj_action.search(cr, uid, [('name', '=', 'View Log'), ('res_model', '=', 'audittrail.log'), ('src_model', '=', thisrule.object_id.model)])
obj_action.unlink(cr, uid, w_id)
value = "ir.actions.act_window" + ',' + str(w_id[0])
                                                                        ^
it must check length of w_id variable





References