Browse Source
[IMP] Module 'auditlog' - Useless lines of code removed
pull/1040/head
sebalix
10 years ago
committed by
Enric Tobella
No known key found for this signature in database
GPG Key ID: 1A2546A1B7BA2451
1 changed files with
0 additions and
2 deletions
-
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)]) |
|
|
|