Browse Source

[IMP] Module 'auditlog' - Useless lines of code removed

pull/119/head
sebalix 10 years ago
parent
commit
9f657e0ca4
  1. 2
      auditlog/models/rule.py

2
auditlog/models/rule.py

@ -424,7 +424,6 @@ class auditlog_rule(models.Model):
"""Unsubscribe Auditing Rule on model."""
act_window_model = self.env['ir.actions.act_window']
ir_values_model = self.env['ir.values']
value = ''
# Revert patched methods
self._revert_methods()
for rule in self:
@ -436,7 +435,6 @@ class auditlog_rule(models.Model):
if act_window:
value = 'ir.actions.act_window,%s' % act_window.id
act_window.unlink()
if value:
ir_value = ir_values_model.search(
[('model', '=', rule.model_id.model),
('value', '=', value)])

Loading…
Cancel
Save