Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 19.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 4 models 2 views 4 HTTP endpoints

Description

Allows to sell decimal quantities of products in continuous units of measure (kg, L, m, ...) on the eCommerce.

By default, Odoo casts the quantities added to the cart to integers, so a customer can't buy 2.5 kg of a product. With this module, quantities are rounded according to the unit of measure:

  • Continuous units of measure keep the decimals allowed by the "Product Unit" decimal precision, e.g. 2.5 kg.
  • Units of measure based on Units can't be split, and keep integer quantities.

This applies to the product page, the product configurator, the cart, the checkout summary and the quick reorder.

The cart quantity shown in the header counts each line in a continuous unit of measure as a single item, e.g. 2.5 kg and 3 units count as 4 items.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
cart_summary_content cart_summary_content ir.ui.view qweb Inherits website_sale.cart_summary_content
quick_reorder_history quick_reorder_history ir.ui.view qweb Inherits website_sale.quick_reorder_history

HTTP endpoints 4

Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) WebsiteSaleUomContinuousCart.add_to_cart inherited jsonrpc ALL
(inherited route override) WebsiteSaleUomContinuousCart.update_cart inherited jsonrpc ALL
(inherited route override) WebsiteSaleUomContinuousProductConfiguratorController.website_sale_product_configurator_get_values inherited jsonrpc ALL
(inherited route override) WebsiteSaleUomContinuousProductConfiguratorController.website_sale_product_configurator_update_combination inherited jsonrpc ALL

Models touched 4

New fields (0)

No new fields.

Public methods (1)
  • get_frontend_session_info(self)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.