mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 19:12:03 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
|
||||
openupgrade.logged_query(
|
||||
env.cr,
|
||||
"""
|
||||
UPDATE ir_model_fields SET trackable = false;
|
||||
UPDATE ir_model_fields SET trackable = true
|
||||
WHERE name NOT IN (
|
||||
'activity_ids',
|
||||
'message_ids',
|
||||
'message_last_post',
|
||||
'message_main_attachment',
|
||||
'message_main_attachement_id'
|
||||
)
|
||||
AND store AND related IS NULL;
|
||||
""",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue