Skip to content

Commit

Permalink
[FIX] sale_loyalty_order_line_link: Fix SQL query of migration script.
Browse files Browse the repository at this point in the history
The alias in front of the column to be modified causes a conflict and is wrong.
  • Loading branch information
pilarvargas-tecnativa committed Jul 10, 2024
1 parent 05a4f93 commit 5691340
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 5691340

Please sign in to comment.