-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
[15.0][MIG] website_sale_coupon_restrict: Migration to version 15.0 #108
Conversation
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.
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: |
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.
You should check if order exists as well
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.
Done, thanks for the suggest
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. |
256ed45
to
797a464
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.
Code review 👍
website_sale_coupon_restrict/views/sale_coupon_program_views.xml
Outdated
Show resolved
Hide resolved
797a464
to
7d7f1c8
Compare
Ready to merge @pedrobaeza |
/ocabot migration website_sale_coupon_restrict |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 8cf5601. Thanks a lot for contributing to OCA. ❤️ |
cc@Tecnativa TT37333
@chienandalu @CarlosRoca13 please review!