[IMP] auditlog: black, isort, prettier

pull/2755/head
BT-vgabor 2022-01-31 15:22:20 +01:00 committed by Raf Ven
parent da184bfec9
commit 1713ad5d6c
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class AuditlogLog(models.Model):
@api.model_create_multi @api.model_create_multi
def create(self, vals_list): 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: for vals in vals_list:
if not vals.get("model_id"): if not vals.get("model_id"):
raise UserError(_("No model defined to create log.")) raise UserError(_("No model defined to create log."))

View File

@ -301,7 +301,7 @@ class TestFieldRemoval(SavepointCase):
self.assertEqual(self.auditlog_rule.model_model, "x_test.model") self.assertEqual(self.auditlog_rule.model_model, "x_test.model")
def test_01_field_and_model_removal(self): 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() self.assert_values()
# Remove the field # Remove the field