Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
# Field 'chatter_position' was defined in module 'web_responsive' before it was
# moved to 'web_chatter_position'. In 'web_responsive' the allowed values have
# been ['normal', 'sided'].
# In case users installed 'web_chatter_position' along with 'web_responsive' field
# 'chatter_position' potentially was already in the db with old values, which are
# not supported.
# This migration covers this scenario by correcting unsupported values.
openupgrade.logged_query(
env.cr,
"""
UPDATE res_users
SET chatter_position = 'auto'
WHERE chatter_position = 'normal'
""",
)