[MIG] mrp_workorder_sequence: Migration to 17.0

This commit is contained in:
Antoni Marroig Campomar
2024-04-24 09:22:00 +02:00
parent bd841de5ff
commit e7e37f2d0e
6 changed files with 28 additions and 12 deletions

View File

@@ -2,8 +2,8 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
def post_init_hook(cr, registry):
cr.execute(
def post_init_hook(env):
env.cr.execute(
"""
UPDATE mrp_workorder
SET sequence = n.sequence