Stock Picking Volume
stock_picking_volume · OCA/stock-logistics-warehouse
-
Security25/25No findings
-
Activity20/25Last human commit 9 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 14.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 stock_move SET volume = CASE WHEN stock_move.state in ('partially_available', 'assigned') THEN stock_move.quantity * pp.volume ELSE stock_move.product_uom_qty * pp.volume END FROM product_product pp WHERE stock_move.state NOT IN ('done', 'cancel') AND pp.id = stock_move.product_id` - re-check the table/column names still match after upgrading. (2 occurrences in this file) 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
For some processes, you need to know the volume of your stock transfers. This could be useful for example to know the device to use to process it. An other use case could be to know how many trucks you need to deliver your products.
By default, the delivery module from Odoo will compute the transfer weight. Unfortunately, it will not compute the volume. This module will add the volume computation to the stock transfer and to the moves. This information will be stored in the database and will be available on the transfer and move form views.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
stock_move_form_view |
stock.move.form (in stock_picking_volume) | stock.move | form | Inherits stock.view_move_form |
stock_picking_form_view |
stock.picking.form (in stock_picking_volume) | stock.picking | form | Inherits stock.view_picking_form |
stock_picking_tree_view |
stock.picking.tree (in stock_picking_volume) | stock.picking | tree | Inherits stock.vpicktree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
-
volumeFloatcompute='_compute_volume'compute_sudo=Truestore=True -
volume_uom_nameCharcompute='_compute_volume_uom_name'string='Volume unit of measure label'
No public methods.
-
volumeFloatcompute='_compute_volume'compute_sudo=Truestore=True -
volume_uom_nameCharcompute='_compute_volume_uom_name'string='Volume unit of measure label'
No public methods.
Loading…
Loading…
Loading…
Loading…