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] website_sale_coupon_restrict: Migration to version 15.0 #108

Merged
merged 7 commits into from
Feb 24, 2023

Conversation

stefan-tecnativa
Copy link
Contributor

cc@Tecnativa TT37333

@chienandalu @CarlosRoca13 please review!

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As usual, split core and sale functionality


def _check_coupon_code(self, order):
def _check_coupon_code(self, order_date, partner_id, **kwargs):
order = kwargs.get("order", False)
if self.program_id.website_only and not order.website_id:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check if order exists as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks for the suggest

@pedrobaeza
Copy link
Member

Not sure if in this case it's worth the split, being this totally oriented to e-commerce

@chienandalu
Copy link
Member

Not sure if in this case it's worth the split, being this totally oriented to e-commerce

Yes, that's right, we're depending on website_sale_coupon, so the comment isn't relevant.

@stefan-tecnativa stefan-tecnativa force-pushed the 15.0-mig-website_sale_coupon_restrict branch from 256ed45 to 797a464 Compare February 15, 2023 11:39
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review 👍

@stefan-tecnativa stefan-tecnativa force-pushed the 15.0-mig-website_sale_coupon_restrict branch from 797a464 to 7d7f1c8 Compare February 17, 2023 09:38
@chienandalu
Copy link
Member

Ready to merge @pedrobaeza

@pedrobaeza
Copy link
Member

/ocabot migration website_sale_coupon_restrict
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Feb 24, 2023
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-108-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Feb 24, 2023
21 tasks
@OCA-git-bot OCA-git-bot merged commit 4f6464e into OCA:15.0 Feb 24, 2023
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 15.0-mig-website_sale_coupon_restrict branch February 24, 2023 10:09
pilarvargas-tecnativa pushed a commit to Tecnativa/sale-promotion that referenced this pull request May 30, 2023
Signed-off-by pedrobaeza
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.

None yet

6 participants