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

[15.0][MIG] sale_coupon_limit: Migration to 15.0 #101

Merged
merged 10 commits into from
Feb 4, 2023

Conversation

chienandalu
Copy link
Member

Follow-up of #96

cc @Tecnativa TT38310

please review @pedrobaeza @victoralmau

@chienandalu
Copy link
Member Author

chienandalu commented Jan 27, 2023

It isn't good. I've lost some history...

It should be ok now

chienandalu and others added 10 commits January 27, 2023 10:47
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
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
@pedrobaeza
Copy link
Member

/ocabot migration sale_coupon_limit

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Feb 1, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 1, 2023
21 tasks
@OCA-git-bot
Copy link
Contributor

The migration issue (#25) has been updated to reference the current pull request.
however, a previous pull request was referenced : #96.
Perhaps you should check that there is no duplicate work.
CC : @chienandalu

Copy link
Member

@pedrobaeza pedrobaeza left a 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.

@chienandalu
Copy link
Member Author

There's no PNG on sale_coupon_limit.

You mean the icon.png? I see it there

@pedrobaeza
Copy link
Member

Ah, OK, I was just seeing the migration commit.

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-101-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 57c0806 into OCA:15.0 Feb 4, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c747e46. Thanks a lot for contributing to OCA. ❤️

pilarvargas-tecnativa pushed a commit to Tecnativa/sale-promotion that referenced this pull request May 30, 2023
Signed-off-by pedrobaeza
@pedrobaeza pedrobaeza deleted the 15.0-mig-sale_coupon_limit-2 branch July 10, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants