odoo/tutorials#1053
Created by Darshil Naliyapara (danal)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 26s)
- ci/tutorial: (runtime 91s)
- label
- odoo-dev:19.0-bom_overview-danal
- head
- ab0ad67699669355ca1a317f094ad658ee0cf3de
| odoo/tutorials | |
|---|---|
| 19.0 | #1053 missing r+ |
| master |
[ADD] mrp_bom_overview_forecast: merge status and availability
Currently, the BoM Overview report displays 'Status' and 'Availability' as two separate columns/indicators. This leads to a cluttered interface and occupies unnecessary horizontal space on the report lines.
This module merges these two indicators into a single column to streamline the display.
The following logic is implemented:
1. For the parent product: Displays the production status if all components are available, will always green. If not ready, it falls back to showing the availability date/state.
2. For components: Always displays the availability state.
Technical details:
- Template mrp.BomOverviewLine: Removed the availability_display column and consolidated the badge display logic in the XML.
- JS BomOverviewLine: Created ColorClass getter to dynamically assign colors (success, warning, danger, dark) based on the availability state.
- Template mrp.BomOverviewTable: Removed Availability column and margins using xpath for a cleaner forecast layout.