Browse Source

[FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used

pull/1040/head
sebalix 10 years ago
committed by Enric Tobella
parent
commit
0836262dd3
No known key found for this signature in database GPG Key ID: 1A2546A1B7BA2451
  1. 1
      auditlog/models/rule.py

1
auditlog/models/rule.py

@ -292,7 +292,6 @@ class auditlog_rule(models.Model):
if new_values is None: if new_values is None:
new_values = EMPTY_DICT new_values = EMPTY_DICT
log_model = self.env['auditlog.log'] log_model = self.env['auditlog.log']
ir_model = self.env['ir.model']
for res_id in res_ids: for res_id in res_ids:
model_model = self.env[res_model] model_model = self.env[res_model]
res_name = model_model.browse(res_id).name_get() res_name = model_model.browse(res_id).name_get()

Loading…
Cancel
Save