fix flake

This commit is contained in:
Florent THOMAS 2022-02-10 08:31:25 +01:00
parent 6104844287
commit 741544cb8e
2 changed files with 5 additions and 5 deletions

View File

@ -185,8 +185,8 @@ class DocumentPage(models.Model):
@api.multi
def _inverse_content(self):
for rec in self:
if rec.type == "content" and \
rec.content != rec.history_head.content:
if rec.type == "content" \
and rec.content != rec.history_head.content:
rec._create_history(
{
"name": rec.draft_name,