mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 02:48:41 -06:00
Categories don't save content
This commit is contained in:
parent
6da6d85ad7
commit
2b4327751f
@ -153,10 +153,10 @@ 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.content:
|
if rec.type == 'content':
|
||||||
rec._create_history({
|
rec._create_history({
|
||||||
'content': rec.content,
|
'content': rec.content,
|
||||||
'summary': rec.summary
|
'summary': rec.summary,
|
||||||
})
|
})
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
Loading…
Reference in New Issue
Block a user