From 0e57a18f41fa9288cd161f8bc172d83341636abd Mon Sep 17 00:00:00 2001 From: sebalix Date: Mon, 2 Feb 2015 15:58:52 +0100 Subject: [PATCH] [IMP] Module 'auditlog' - Useless lines of code removed --- auditlog/models/rule.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index 86a8e43bf..c9eef875f 100644 --- a/auditlog/models/rule.py +++ b/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)])