Website Sale Secondary Unit
website_sale_secondary_unit · OCA/e-commerce
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE product_template SET allow_uom_sell=true WHERE allow_uom_sell IS NULL;` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
cart_lines |
Secondary Unit Cart Lines | ir.ui.view | qweb | Inherits website_sale.cart_lines |
cart_summary_content |
Secondary Unit Cart Summary | ir.ui.view | qweb | Inherits website_sale.cart_summary_content |
cta_wrapper |
Select Secondary Unit | ir.ui.view | qweb | Inherits website_sale.cta_wrapper |
product_price |
Secondary Unit Price Reference | ir.ui.view | qweb | Inherits website_sale.product_price |
product_template_form_view_secondary_unit |
product.template | form | Inherits product_secondary_unit.product_template_form_view | |
product_template_form_view_website_sale |
product.template.website.secondary.unit.form | product.template | form | Inherits website_sale.product_template_form_view |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | CartSecondaryUnit.update_cart |
inherited | http | ALL | |
| (inherited route override) | CustomerPortalSecondaryUnit.my_orders_reorder |
inherited | http | ALL | sudo |
Models touched 5
No new fields.
Public methods (0)No public methods.
-
is_publishedBooleandefault=True
No public methods.
-
allow_uom_sellBooleandefault=Truestring='Allow to sell in unit of measure'
No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…