OdooWiki OCA HUB

Website Sale Product Pack

website_sale_product_pack folder_open OCA/product-pack open_in_new
E-Commerce License: AGPL-3

This module introduces compatibility of product packs with e-commerce:

  • In the cart summary, the components aren't editable and are shown hanging from the main pack reference.
  • When we remove a pack from the cart, their components are removed as well.
  • The cart popup summary only shows the main pack line and discards the sublines in the units count.
  • The cart summary shows the component lines hanging from the main one as well.
  • It's ensured the the prices are shown correctly for the whole pack and that they're correctly summarized depending on the pack type.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Makes product packs work correctly on the Odoo website shop and cart: pack components follow the main pack line, cannot be edited or removed separately, and prices are shown for the whole pack.

This module adapts the online shop so that product packs (a main product made of several components) behave properly for website visitors.

In the cart and checkout summary, component lines appear indented under the main pack line with an arrow, but they cannot be edited or deleted on their own: the quantity field and delete button are hidden for them. Removing the main pack line also removes its components automatically, so customers do not have to clean up leftover lines.

The cart counter (the number shown on the cart icon) only counts the main pack line, not each component, so the quantity reflects what the customer actually ordered.

Prices are handled according to the pack type: for packs whose components are priced in detail, component prices are shown; otherwise only the main pack price is displayed. The product page and product listing show the price of the whole pack rather than a single component.

Business rules are enforced on products: a published pack cannot contain unpublished components, and a component used in a published pack cannot be unpublished, with clear error messages. Discounts set on components are kept when the customer updates the cart or checks out.

Depends on

website_salesale_product_pack
Models and fields (5)
  • website · extends an existing model
  • sale.order · extends an existing model
  • product.product · extends an existing model
  • sale.order.line · extends an existing model
  • product.template · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/product-pack.

terminal Installation and usage

OCA documentation · Odoo 17.0

There are several demo packs to test the module. Publish them and add them to the cart from the frontend. You should have the same quotation as if you do it in the backend.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.