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

pull/2466/head
sebalix 2015-02-02 15:58:52 +01:00 committed by Stefan Rijnhart
parent 083c6cdf91
commit a6d98814f5
1 changed files with 0 additions and 2 deletions

View File

@ -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)])