c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07082
[Bug 687248] [NEW] Audittrail Log Rule BUG on action unsubcribe
Public bug reported:
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
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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:
New
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
Follow ups
References