mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-29 20:06:29 -06:00
fix flake
This commit is contained in:
parent
6104844287
commit
741544cb8e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user