[IMP] auditlog: black, isort, prettier
parent
d7d8eeb548
commit
3059c6b20c
|
@ -27,7 +27,7 @@ class AuditlogLog(models.Model):
|
|||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
""" Insert model_name and model_model field values upon creation. """
|
||||
"""Insert model_name and model_model field values upon creation."""
|
||||
for vals in vals_list:
|
||||
if not vals.get("model_id"):
|
||||
raise UserError(_("No model defined to create log."))
|
||||
|
|
|
@ -301,7 +301,7 @@ class TestFieldRemoval(SavepointCase):
|
|||
self.assertEqual(self.auditlog_rule.model_model, "x_test.model")
|
||||
|
||||
def test_01_field_and_model_removal(self):
|
||||
""" Test field and model removal to check auditlog line persistence """
|
||||
"""Test field and model removal to check auditlog line persistence"""
|
||||
self.assert_values()
|
||||
|
||||
# Remove the field
|
||||
|
|
Loading…
Reference in New Issue