diff options
| author | Adrien Widart <awt@odoo.com> | 2021-02-11 08:31:26 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-02-11 08:31:26 +0000 |
| commit | 6aca9d40d7844e821dd3341151c4c5858910fced (patch) | |
| tree | 46121a882df5088f5e698b7e0291cd36fbdfe658 /doc/reference/javascript_cheatsheet.rst | |
| parent | beb7159980f7ed29323d99fd4b72de3fa187f455 (diff) | |
[FIX] sale_stock: consider state on qty_at_date widget update
When adding a line to a new SO, if the delivery date is in the future,
and even though the quantity will be sufficient at that time, the
symbol of the quantity remains red ("Not available").
To reproduce the error:
1. Create a storable product P
2. Create + Confirm a RfQ
- Add 1 x P
- Set the receipt date in the future (e.g., today + 7 days)
- (! Do not receive the product)
3. Create a SO
- Add 1 x P
- (In Other Info) Set the delivery date after the receipt date
(e.g., today + 8 days)
4. Save & Go back to order lines
Error: The chart next to the requested quantity is always red. This is
not true since the delivery is scheduled after the product reception. If
you click on the chart, the forcasted stock on delivery date is 1.
Therefore, the chart should be green.
This fix improves #60054: the latter updates the computation of
`will_be_fulfilled` using `free_qty_today` because there was an issue
when the SO is confirmed. However, the initial widget behaviour was
correct when the SO is not confirmed.
OPW-2440724
closes odoo/odoo#65926
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions
