mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-30 12:26:29 -06:00
fix flake
This commit is contained in:
parent
6104844287
commit
741544cb8e
@ -185,8 +185,8 @@ class DocumentPage(models.Model):
|
|||||||
@api.multi
|
@api.multi
|
||||||
def _inverse_content(self):
|
def _inverse_content(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
if rec.type == "content" and \
|
if rec.type == "content" \
|
||||||
rec.content != rec.history_head.content:
|
and rec.content != rec.history_head.content:
|
||||||
rec._create_history(
|
rec._create_history(
|
||||||
{
|
{
|
||||||
"name": rec.draft_name,
|
"name": rec.draft_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user