Website Sale UoM Continuous
website_sale_uom_continuous · OCA/e-commerce
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (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
No new fields.
Public methods (1)-
get_frontend_session_info(self)@api.model
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.