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