Skip to content

Commit

Permalink
Merge pull request #220 from Tecnativa/16.0-fix-sale_loyalty_order_li…
Browse files Browse the repository at this point in the history
…ne_link-fix_script

[16.0][FIX] sale_loyalty_order_line_link: Fix SQL query of migration script.
  • Loading branch information
pedrobaeza authored Jul 10, 2024
2 parents 05a4f93 + 5691340 commit 9aefa10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def migrate(env, version):
env.cr,
"""
UPDATE sale_order_line AS sol
SET sol.reward_id = lr.id
SET reward_id = lr.id
FROM loyalty_reward AS lr
WHERE sol.loyalty_program_id = lr.program_id;
""",
Expand Down

0 comments on commit 9aefa10

Please sign in to comment.