Skip to content

Conversation

@ALopez-Adhoc
Copy link
Contributor

No description provided.

@ALopez-Adhoc ALopez-Adhoc force-pushed the 18.0-mig-website_sale_product_pack branch 4 times, most recently from f8dd1ef to cc7e0f7 Compare December 26, 2024 19:41
@matiasperalta1 matiasperalta1 force-pushed the 18.0-mig-website_sale_product_pack branch from cc7e0f7 to b070ee4 Compare January 17, 2025 18:30
Copy link

@matiasperalta1 matiasperalta1 left a comment

Choose a reason for hiding this comment

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

LGTM

@augusto-weiss
Copy link
Contributor

Hi @ALopez-Adhoc i added some review... also edit the commit name please to [18.0][MIG] thanks a lot

@ALopez-Adhoc ALopez-Adhoc force-pushed the 18.0-mig-website_sale_product_pack branch from b070ee4 to 59167c4 Compare January 20, 2025 18:30
@ALopez-Adhoc ALopez-Adhoc changed the title [18.0][MIG} website_sale_product_pack: Migration to 18.0 [18.0][MIG] website_sale_product_pack: Migration to 18.0 Jan 20, 2025
@ALopez-Adhoc
Copy link
Contributor Author

@augusto-weiss Thanks for the review. The changes has been applied. You can review them again if you will

@ALopez-Adhoc ALopez-Adhoc force-pushed the 18.0-mig-website_sale_product_pack branch 4 times, most recently from fc791c8 to d95f90a Compare January 22, 2025 12:03
chienandalu and others added 13 commits January 23, 2025 10:10
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
@ALopez-Adhoc ALopez-Adhoc force-pushed the 18.0-mig-website_sale_product_pack branch from d95f90a to 1db6641 Compare January 23, 2025 13:19
@ALopez-Adhoc ALopez-Adhoc force-pushed the 18.0-mig-website_sale_product_pack branch from 1db6641 to ba06b65 Compare January 23, 2025 19:28
@augusto-weiss
Copy link
Contributor

LGTM Thanks @ALopez-Adhoc

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@matiasperalta1
Copy link

@pedrobaeza Is it ready to merge?

@nicolascol
Copy link

Hi @rousseldenis
Could you merge?
THZ

@github-actions
Copy link

github-actions bot commented Jun 1, 2025

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 1, 2025
@mmrondon
Copy link

mmrondon commented Jul 2, 2025

hello
I was wondering if there are any plans to review or merge it soon
Thanks in advance!

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 6, 2025
@lef-adhoc lef-adhoc force-pushed the 18.0-mig-website_sale_product_pack branch from ba06b65 to 031a47f Compare July 17, 2025 19:32
@lef-adhoc lef-adhoc force-pushed the 18.0-mig-website_sale_product_pack branch from 031a47f to 58d3bad Compare August 7, 2025 17:19
@nicolascol
Copy link

Hi! Could you merge please?
@pedrobaeza @rousseldenis

@augusto-weiss
Copy link
Contributor

@mmrondon Hi, could you test it ?

@rousseldenis
Copy link
Contributor

/ocabot migration website_sale_product_pack

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 6, 2025

@tagged("post_install", "-at_install")
class WebsiteSaleHttpCase(HttpCase):
def setUp(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to classmethod

Copy link
Contributor

Choose a reason for hiding this comment

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

Done! @rousseldenis THZ

Copilot AI review requested due to automatic review settings October 7, 2025 14:02
@augusto-weiss augusto-weiss force-pushed the 18.0-mig-website_sale_product_pack branch from 58d3bad to 39bdcaa Compare October 7, 2025 14:02
Copy link

Copilot AI left a 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 -->
Copy link

Copilot AI Oct 7, 2025

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'

Suggested change
<!-- 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 -->

Copilot uses AI. Check for mistakes.
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):
Copy link

Copilot AI Oct 7, 2025

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'

Suggested change
def test__check_to_add_pack_component_pusblished(self):
def test__check_to_add_pack_component_published(self):

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +26
"You can't unpublished products (%(unpublished_products)s) to a"
"published pack (%(pack_name)s)"
Copy link

Copilot AI Oct 7, 2025

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

Copilot uses AI. Check for mistakes.
Comment on lines +43 to +44
"You can't unpublished product (%(product_name)s) for a"
"published pack parents (%(pack_parents)s)"
Copy link

Copilot AI Oct 7, 2025

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

Copilot uses AI. Check for mistakes.
_(
"You can't add unpublished products "
"(%(unpublished_products)s)"
"to a published pack (%(pack_name)s)"
Copy link

Copilot AI Oct 7, 2025

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

Suggested change
"to a published pack (%(pack_name)s)"
" to a published pack (%(pack_name)s)"

Copilot uses AI. Check for mistakes.
@XenoMannens
Copy link

@ALopez-Adhoc Any ETA on this migration since we have a customer that wants to use this module.

Thanks in advance

@lef-adhoc lef-adhoc force-pushed the 18.0-mig-website_sale_product_pack branch from 39bdcaa to 8a13b5c Compare December 13, 2025 16: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.