mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-17 04:32:55 -06:00
10 lines
305 B
Python
10 lines
305 B
Python
from openupgradelib import openupgrade
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
document_page_history = env["document.page.history"]
|
|
for record in document_page_history.search([]):
|
|
# Apply default HTML sanitize by reassigning the content
|
|
record.content = record.content
|