odoo/odoo#97802
Created by Logistics, Mathias Mathy (mama)
Merged
at 0ef8c4f01d22abee3b46c71d640a17bf55922d02
- label
- odoo-dev:master-stock-warn_unwanted_replenish-mama
- head
- ae62f9726782d41801eb192f22c3269b5f60467e
- target
- master
- merged
- 1 year ago by Logistics, Arnold Moyaux (arm)
[IMP] stock: Warning on Replenishing too much
**Steps to reproduce :**
- Create a Product A, with no stock and a 0 min 1 max manual reordering rule (no sales lead time, no purchase lead time)
- Sell 10 of A with a delivery scheduled today
- In Replenishment, create a PO for A, confirm it with reception scheduled today
- Reschedule reception of PO in 7 days
**Expected Behavior :**
The forecast icon is replaced by an orange warning icon.
When hovering the icon, the user is warned that replenishing can lead to an overstock.
**Current behavior :**
In Replenishment, Product A has a forecast of -10 and Qty to Order is set to 11.
When the user replenish A again, the PO is created and may lead to an overstock.
task : 2918947