-
-
Notifications
You must be signed in to change notification settings - Fork 64
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][MIG] coupon_multi_gift>loyalty_multi_gift: Migration to version 16.0 #181
Conversation
9047592
to
595f223
Compare
/ocabot migration coupon_multi_gift |
595f223
to
ced71cb
Compare
b6d64f8
to
e847210
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pilarvargas-tecnativa I just added a commit to avoid the bug we have when creating the multi-gift lines. Check it and update relaunch the sale_loyalty_multi_gift
CI
2013fb8
to
52b973b
Compare
@chienandalu I have incorporated here the test that checks the fix. |
Great 👍 |
- Added migration script - Adapt test - Adapt methods and views TT44321
In https://github.com/odoo/odoo/blob/69b1993fb45b76110c24f5189a0ecfe9eb59a2aa/addons/loyalty/models/loyalty_program.py#L409 there is a call convert_to_cache on reward_ids that causes that one2many create commands are called twice and thus we get a duplicated record as convert_to_cache executes the values commands. We need to trick the context in order to flag the calls and create the multi gift lines just once.
52b973b
to
20b91be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge nobump
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 74a28ad. Thanks a lot for contributing to OCA. ❤️ |
Supersedes: #162
cc @Tecnativa TT44321
@chienandalu please review