Skip to content

Commit

Permalink
Merge PR #1254 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Oct 31, 2024
2 parents 3dfe32c + 5cf2922 commit 83ef6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fieldservice_account_analytic/init_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def pre_init_hook(cr):
cr.execute("""ALTER TABLE "fsm_location" ADD "customer_id" INT;""")
cr.execute("""ALTER TABLE "fsm_location" ADD IF NOT EXISTS "customer_id" INT;""")
cr.execute(
"""UPDATE "fsm_location" SET customer_id = owner_id
WHERE customer_id IS NULL;"""
Expand Down

0 comments on commit 83ef6dc

Please sign in to comment.