diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2020-09-18 07:43:12 +0000 |
|---|---|---|
| committer | Rémy Voet (ryv) <ryv@odoo.com> | 2020-09-18 07:45:37 +0000 |
| commit | 54c326e87ef2ed43cc89180c4f53baef0fcd569d (patch) | |
| tree | 6f6dc41edad8230201e8721dcb99517bde7af51e /addons/stock/static | |
| parent | 7325c3f8c538a8b8c0435963cdda3ced6fe4b324 (diff) | |
[FIX] stock: forecasted info change
In reserved field of stock move, instead of showing expected
date of coming moves without enough quantity,
show "Not Availaible".
closes odoo/odoo#57992
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/stock/static')
| -rw-r--r-- | addons/stock/static/src/xml/forecast_widget.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/static/src/xml/forecast_widget.xml b/addons/stock/static/src/xml/forecast_widget.xml index 2f2f14b2ec5..8d282da2452 100644 --- a/addons/stock/static/src/xml/forecast_widget.xml +++ b/addons/stock/static/src/xml/forecast_widget.xml @@ -3,7 +3,7 @@ <t t-name="stock.forecastWidget"> <span t-if="['draft', 'partially_available', 'assigned'].includes(state)" t-esc="reserved_availability_str"/> <span t-elif="!forecast_expected_date_str and will_be_fulfilled" class="text-success">Available</span> - <span t-elif="forecast_expected_date_str" t-att-class="forecast_is_late ? 'text-danger' : 'text-warning'">Exp <t t-esc="forecast_expected_date_str"/></span> + <span t-elif="forecast_expected_date_str and will_be_fulfilled" t-att-class="forecast_is_late ? 'text-danger' : 'text-warning'">Exp <t t-esc="forecast_expected_date_str"/></span> <span t-else="" class="text-danger">Not Available</span> <button t-if="product_type == 'product'" class="o_forecast_report_button btn btn-link o_icon_button ml-2" title="Forecasted Report"> <i t-attf-class="fa fa-fw fa-area-chart {{ state != 'draft' and (!will_be_fulfilled or forecast_is_late) ? 'text-danger' : '' }}"/> |
