[FIX] {sale_}purchase{_stock}: select sellers depending on date
Commit 72a17baf force the PO `date_order` to be >= at ` today() to ensure the select_seller method take the right seller price. This introduces an error in the MPS module that may need to create PO in the past. Instead, this commit patch the call to `_select_seller` to take at least `today()` closes odoo/odoo#134130 Opw: 3167094 X-original-commit: b06b0a77 Signed-off-by:Arnold Moyaux (arm) <arm@odoo.com> Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
Showing
- addons/purchase/models/purchase.py 1 addition, 1 deletionaddons/purchase/models/purchase.py
- addons/purchase_stock/models/stock_rule.py 1 addition, 1 deletionaddons/purchase_stock/models/stock_rule.py
- addons/sale_purchase_stock/tests/test_lead_time.py 63 additions, 0 deletionsaddons/sale_purchase_stock/tests/test_lead_time.py
Loading
Please register or sign in to comment