Skip to content

Commit

Permalink
Merge pull request #222 from Tecnativa/16.0-fix-loyalty_criteria_mult…
Browse files Browse the repository at this point in the history
…i_product

[16.0][FIX] loyalty_criteria_multi_product: Complete loyalty_rule table data
  • Loading branch information
pedrobaeza authored Jul 15, 2024
2 parents a5b72cb + ad3b7ee commit bac5695
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit bac5695

Please sign in to comment.