mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 22:32:01 +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,28 @@
|
|||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.add_fields(
|
||||
env,
|
||||
[
|
||||
(
|
||||
"model_id",
|
||||
"mgmtsystem.evaluation",
|
||||
"mgmtsystem_evaluation",
|
||||
"many2one",
|
||||
None,
|
||||
"mgmtsystem_evaluation",
|
||||
None,
|
||||
),
|
||||
],
|
||||
)
|
||||
openupgrade.logged_query(
|
||||
env.cr,
|
||||
"""
|
||||
UPDATE mgmtsystem_evaluation me
|
||||
SET model_id = met.model_id
|
||||
FROM mgmtsystem_evaluation_template met
|
||||
WHERE me.template_id = met.id
|
||||
""",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue