Categories don't save content

This commit is contained in:
Iván Todorovich 2018-03-01 00:08:24 -03:00
parent 6da6d85ad7
commit 2b4327751f

View File

@ -153,10 +153,10 @@ class DocumentPage(models.Model):
@api.multi
def _inverse_content(self):
for rec in self:
if rec.content:
if rec.type == 'content':
rec._create_history({
'content': rec.content,
'summary': rec.summary
'summary': rec.summary,
})
@api.multi