Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] loyalty_criteria_multi_product: Complete loyalty_rule table data #222

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ def move_coupon_criteria_to_rule(env):
env.cr,
"""
UPDATE loyalty_rule AS lr
SET loyalty_criteria = 'multi_product'
SET loyalty_criteria = lp.coupon_criteria
FROM loyalty_program AS lp
WHERE lr.program_id = lp.id
AND lp.coupon_criteria = 'multi_product'
""",
)
# coupon_criteria_ids to loyalty_criteria_ids
Expand Down
Loading