OdooWiki OCA HUB

Product matrix with secondary units in eCommerce

website_sale_secondary_unit_product_matrix folder_open OCA/e-commerce open_in_new
Website License: AGPL-3

With this module we'll be able to use the product matrix in the eCommerce so our customers can easily add products to their carts.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Lets online shoppers choose a secondary unit of measure (like a box or pack) directly in the product matrix on the eCommerce product page, so quantities are added to the cart in the unit they want.

This module adds a unit-of-measure selector to the product matrix shown on the eCommerce product page. When a product is configured with secondary units, a dropdown labelled "Select a unit of measure" appears above the matrix grid.

  • Shoppers can pick the main unit or any of the product's secondary units before entering quantities in the matrix.
  • The chosen unit is sent along with the matrix quantities when the product is added to the cart, so the order lines use the selected unit.
  • The selector only appears when the product actually has secondary units available; otherwise the matrix looks unchanged.
  • The option for the product's default unit is shown only when the product allows selling in that unit.

The module works together with the product matrix, secondary units in sales, and secondary units in the eCommerce website. It extends the product.template model so the matrix knows whether selling in the default unit is allowed, and it adapts the website sale front-end script to read the selected unit from the form. No new menus or reports are added; the change is visible on the product page where the matrix is displayed.

Models and fields (1)
  • 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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 17.0

To configure this module, you need to:

  • Go to a product with variants or create one.
  • In the Attributes and variants tab, Sales Variant Selection section, select Order grid entry.

To use this module, you need to:

  • Go to the configured product web page.
  • You'll se the matrix where you can add units to the cart.

No verified information in OCA: Installation.

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.