TIP: You can type at any time to perform a new search.
Website Sale Secondary Unit
website_sale_secondary_unit · OCA/e-commerce
Security findings
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. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/e-commerce · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Website
- Folder size
- 0.1 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/e-commerce
- Last tracking update
- 2026-09-11 11:31:00
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- Carlos Roca, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- geoip2
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis
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)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
is_publishedBooleandefault=True
No public methods.
New fields (1)
-
allow_uom_sellBooleandefault=Truestring='Allow to sell in unit of measure'
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.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…