[IMP][10.0][document_page] Change Requests and workflow improvements on documents (#155)

This commit is contained in:
Iván Todorovich
2018-04-13 11:36:33 -03:00
committed by FernandoRomera
parent b862c87e8c
commit 47320de3a2
21 changed files with 518 additions and 364 deletions

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Ivan Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
def migrate(cr, version): # pragma: no cover
# Set all pre-existing categories template to its content
cr.execute("""
UPDATE document_page
SET template = content
WHERE type = 'category'
""")