mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
[MIG] document_page_reference: Migration to 17.0
[FIX]document_page_reference :log warning updated [FIX]document_page_reference: null value issue fixed Co-authored-by: Anusha <anusha.pp@calin.co.in>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Copyright 2025 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import re
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
for item in env["document.page"].search([("content", "ilike", "${")]):
|
||||
item.content = re.sub(r"\${(.+)}", r"{{\1}}", item.content)
|
||||
Reference in New Issue
Block a user