Skip to main content
Odoo Community Association

Website Sale Secondary Unit

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

This module extends the functionality of sale_order_secondary_unit to allow selling products in the online store using the secondary units defined on the product.

Odoo ships a similar feature based on uom.uom records shared by all products (the Packagings field). Secondary units are instead defined per product and keep both quantities (product unit and secondary unit) on the sale order line, which is useful when each product has its own packing sizes.

Table of contents

Configuration

To define the secondary units, you should activate Units of Measure & Packagings in Inventory > Configuration > Settings for the user that will be responsible of this function.

Usage

To use this module you need to:

  • Go to ‘Website > eCommerce > Products’.

  • Select a template.

  • On the General Information tab, fill in the Secondary Unit of Measure lines that you need and tick Website published on the ones that must be offered in the shop.

  • Go to the Website Shop and open that product: next to the quantity selector you will see a selectable option with all the secondary units published for the product. The quantity you type is then counted in the selected unit (e.g. 2 + Box 5 Units adds 10 units to the cart).

  • If you do not want to sell in the base product unit and only allow selling in a secondary unit, you can disable the option ‘Allow to sell in unit of measure’ in the eCommerce Shop section of the product form.

The same selector is shown in the Configure dialog that is opened for products having optional products or several variants.

Each secondary unit gets its own cart line, so the same product can be bought in several units at once.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Tecnativa

Contributors

  • Tecnativa:

    • Sergio Teruel

    • Carlos Roca

    • Pilar Vargas

    • Carlos Lopez

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/e-commerce project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo-addon-website-sale-secondary-unit 19.0.1.0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-website-sale-secondary-unit 19.0.1.0.0.4
File Interpreter ABI Platform
odoo_addon_website_sale_secondary_unit-19.0.1.0.0.4-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_website_sale_secondary_unit-19.0.1.0.0.4-py3-none-any.whl

Download URL odoo_addon_website_sale_secondary_unit-19.0.1.0.0.4-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a25a2b8066784d3586a89fad0b838e3a61dda9115b9fda2cf1ba25b72eff3c61
BLAKE2b-256 checksum
How to use checksums
f64f67b478db49dccb11418a37ff93a4a7a3d8c8984cc7421ff631287dc1366c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page