-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
[15.0][MIG] sale_coupon_limit: Migration to 15.0 #101
Conversation
It should be ok now |
We add some compute fields to check the current promotion usage by the limited users. That allows us to refactor the check method a little bit as well unifying the logic. TT30847
Coupons are reset when a sale order is cancelled, but applied programs remain linked to the cancelled order. As they're cancelled, we should not count them in the limits. TT34264
Sometimes Odoo doesn't remove the rules properly until the promotions are refreshed. This could lead to count mismatches. We wan't to ensure the count looking at the lines instead. TT34266
For complying with rules.
Simplify rule and ensure compatibility with sale_coupon_multiple_code_program wich allows to use multiple code programs putting them in the no code promotions many2many field.
Allow coupon_limit settings to be used by other loyalty modules
2ef950a
to
da66de1
Compare
/ocabot migration sale_coupon_limit |
The migration issue (#25) has been updated to reference the current pull request. |
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.
There's no PNG on sale_coupon_limit
.
You mean the icon.png? I see it there |
Ah, OK, I was just seeing the migration commit. |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at c747e46. Thanks a lot for contributing to OCA. ❤️ |
Follow-up of #96
cc @Tecnativa TT38310
please review @pedrobaeza @victoralmau