oca-server-auth/odoo-bringout-oca-server-auth-vault_share/vault_share/migrations/16.0.1.0.0/post-migrate.py
2025-08-29 15:43:06 +02:00

13 lines
400 B
Python

# © 2024 Florian Kantelberg - initOS GmbH
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
_logger = logging.getLogger(__name__)
def migrate(cr, version):
# Before the migration the iterations were hardcoded to 4000
_logger.info("Setting iterations for previous records")
cr.execute("UPDATE vault_share SET iterations = 4000 WHERE iterations IS NULL")