-
-
Notifications
You must be signed in to change notification settings - Fork 143
[18.0][MIG] website_sale_product_pack: Migration to 18.0 #194
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
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] website_sale_product_pack: Migration to 18.0 #194
Conversation
f8dd1ef to
cc7e0f7
Compare
cc7e0f7 to
b070ee4
Compare
matiasperalta1
left a comment
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.
LGTM
|
Hi @ALopez-Adhoc i added some review... also edit the commit name please to [18.0][MIG] thanks a lot |
b070ee4 to
59167c4
Compare
|
@augusto-weiss Thanks for the review. The changes has been applied. You can review them again if you will |
fc791c8 to
d95f90a
Compare
Compatibility module between sale_product_pack and website_sale TT30385
Done for e-commerce compatibility purposes, althoug it's more performant indeed.
Create and select a specific pricelist for avoiding problems in integrated environments where the default pricelist currency has been changed.
When the cart is confirmed, a price recalculation is triggered for every order line. This is wrong for detailed totalized packs, which lines should be at 0. TT38186
d95f90a to
1db6641
Compare
1db6641 to
ba06b65
Compare
|
LGTM Thanks @ALopez-Adhoc |
|
This PR has the |
|
@pedrobaeza Is it ready to merge? |
|
Hi @rousseldenis |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
hello |
ba06b65 to
031a47f
Compare
031a47f to
58d3bad
Compare
|
Hi! Could you merge please? |
|
@mmrondon Hi, could you test it ? |
|
/ocabot migration website_sale_product_pack |
|
|
||
| @tagged("post_install", "-at_install") | ||
| class WebsiteSaleHttpCase(HttpCase): | ||
| def setUp(self): |
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.
Change this to classmethod
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! @rousseldenis THZ
58d3bad to
39bdcaa
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.
Pull Request Overview
This PR migrates the website_sale_product_pack module from version 17.0 to 18.0, introducing compatibility for product packs with e-commerce functionality.
- Adds comprehensive website sale integration for product packs including cart handling, pricing, and display logic
- Introduces validation constraints to ensure pack components are properly published
- Provides complete test coverage with HTTP tours for different pack types
Reviewed Changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
__manifest__.py |
Module definition with dependencies and version set to 18.0.1.0.0 |
views/templates.xml |
Website templates for cart, checkout, and product display modifications |
models/ |
Core business logic for sale orders, product templates, and validation |
tests/ |
Test framework with HTTP case tests and JavaScript tours |
static/ |
JavaScript tour definitions for e-commerce testing |
i18n/ |
Translation files including Italian locale |
| Documentation | README and description files for module documentation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| <xpath expr="//input[hasclass('js_quantity')]/.." position="attributes"> | ||
| <attribute name="t-if">not line.pack_parent_line_id</attribute> | ||
| </xpath> | ||
| <!-- We don't wan't to allow to add extra components. It all must follow the main pack --> |
Copilot
AI
Oct 7, 2025
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.
Corrected spelling of 'wan't' to 'want'
| <!-- We don't wan't to allow to add extra components. It all must follow the main pack --> | |
| <!-- We don't want to allow to add extra components. It all must follow the main pack --> |
| self.assertEqual(line.price_subtotal, 2662.5) | ||
| self.assertEqual(self._get_component_prices_sum(self.product_pnd), 2662.5) | ||
|
|
||
| def test__check_to_add_pack_component_pusblished(self): |
Copilot
AI
Oct 7, 2025
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.
Corrected spelling of 'pusblished' to 'published'
| def test__check_to_add_pack_component_pusblished(self): | |
| def test__check_to_add_pack_component_published(self): |
| "You can't unpublished products (%(unpublished_products)s) to a" | ||
| "published pack (%(pack_name)s)" |
Copilot
AI
Oct 7, 2025
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.
The word 'unpublished' should be 'unpublish' as a verb in this context
| "You can't unpublished product (%(product_name)s) for a" | ||
| "published pack parents (%(pack_parents)s)" |
Copilot
AI
Oct 7, 2025
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.
The word 'unpublished' should be 'unpublish' as a verb in this context
| _( | ||
| "You can't add unpublished products " | ||
| "(%(unpublished_products)s)" | ||
| "to a published pack (%(pack_name)s)" |
Copilot
AI
Oct 7, 2025
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.
Missing space between 'products' and the opening parenthesis
| "to a published pack (%(pack_name)s)" | |
| " to a published pack (%(pack_name)s)" |
|
@ALopez-Adhoc Any ETA on this migration since we have a customer that wants to use this module. Thanks in advance |
39bdcaa to
8a13b5c
Compare
No description provided.