mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[IMP][10.0][document_page] Change Requests and workflow improvements on documents (#155)
This commit is contained in:
committed by
Dũng (Trần Đình)
parent
3c03f8da12
commit
17696665f1
12
document_page/migrations/10.0.2.0.0/post-migration.py
Normal file
12
document_page/migrations/10.0.2.0.0/post-migration.py
Normal 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'
|
||||
""")
|
||||
Reference in New Issue
Block a user