Stock Location Value
Inventory valuation of a stock location, including its child locations
Adds the inventory value of a stock location, computed from the quants it holds and rolled up from all of its child locations.
Features
- Stock Value stored field on
stock.location, recomputed whenever a quant value or a child location value changes. - The value of a parent location includes the value of every descendant location.
- Computed in
sudoso the valuation is correct even when the user triggering the recomputation is not an inventory manager. - Public helper
get_all_locations()returning a recordset with the locations and all of their descendants.
Main fields
| Model | Field | Type | Description |
|---|---|---|---|
| stock.location | stock_location_value | Monetary | Value of the quants of this location and of its children |
| stock.location | currency_id | Many2one | Currency used for the valuation |
Demo data
- A Site Yard location under WH/Stock with two racks, holding 250 cement bags in total.
- The yard reports 1 700.00 of stock value, of which 816.00 on rack A and 544.00 on rack B: the parent location adds up its children.
Changelog
| Version | Notes |
|---|---|
| 19.0.1.0.0 | Migration to Odoo 19.0: unit tests, demo data, Italian translation and documentation. |
Developed by STeSI Consulting — Francesco Moccia <moccia.f@stesi.consulting>