mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-19 04:12:01 +02:00
Initial commit: OCA Workflow Process packages (456 packages)
This commit is contained in:
commit
d366e42934
18799 changed files with 1284507 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2024 Tecnativa - Juan José Seguí
|
||||
# Copyright 2024 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.logged_query(
|
||||
env.cr,
|
||||
"""UPDATE project_task
|
||||
SET planned_date_end = date_end
|
||||
WHERE planned_date_end IS NULL AND date_end IS NOT NULL;
|
||||
""",
|
||||
)
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# Copyright 2024 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.rename_fields(
|
||||
env, [("project.task", "project_task", "date_start", "planned_date_start")]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue