-
-
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
[16.0][MIG] website_sale_coupon_page > website_sale_loyalty_page: Migration to version 16.0 #149
[16.0][MIG] website_sale_coupon_page > website_sale_loyalty_page: Migration to version 16.0 #149
Conversation
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-promotion-13.0/sale-promotion-13.0-website_sale_coupon_page Translate-URL: https://translation.odoo-community.org/projects/sale-promotion-13-0/sale-promotion-13-0-website_sale_coupon_page/
This way, you can put richer text with multi-lines as description. TT33564
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-promotion-15.0/sale-promotion-15.0-website_sale_coupon_page Translate-URL: https://translation.odoo-community.org/projects/sale-promotion-15-0/sale-promotion-15-0-website_sale_coupon_page/
58ac198
to
84e0472
Compare
…+ Migration to 16.0 TT44378
84e0472
to
d304819
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.
👍
Shouldn't this be renamed to |
Depends on website_sale_loyalty so I think website_sale_loyalty_page is correct. |
But now that I check the dependencies I think it's more correct that it depends on loyalty |
I'm not sure, I'm making a mess with the changes that have been made in odoo, this is to show the promotions in the ecommerce, so it should depend on website_sale and loyalty and the bridge module is website_sale_loyalty, is it correct? In this case it would be fine renamed |
You have to check if the tools to discriminate the "coupons" to show are in |
Strictly it could be that this module only depended on loyalty and website, but it the practice that information is only usable on the eCommerce, so... |
A page can be rendered without website, so maybe the |
Well, the website.published.mixin is being used so that dep can't be dropped |
After analysing the dependencies, they should be loyalty and website. But now comes the dilemma of website_sale_loyalty, does it make sense for a site without e-commerce to show the promotions? I don't know if there will be any case in which, for example, without e-commerce they use the website as a presentation or catalogue and in that case it would be interesting to have this option available. |
If technically not needed, let's not put it for not forcing such installation. On mostly cases, they will install on their own, but not because we need it. |
I autocorrect myself: The correct dependency is website_sale_loyalty, only the promotions published and associated to the website are shown, this is set by the "website_id" field of the mixin "website.multi.mixin" which is defined for the "loyalty.program" model in the website_sale_loyalty module. So the dependency is correct and it is well renamed. ping @pedrobaeza |
This PR has the |
This PR has the |
/ocabot migration website_sale_coupon_page |
On my way to merge this fine PR! |
Congratulations, your PR was merged at d7bddc8. Thanks a lot for contributing to OCA. ❤️ |
Renamed to website_sale_loyalty_page + Migration to 16.0
cc @Tecnativa TT44378
@CarlosRoca13 @chienandalu please review