Before commit, if the 'Receipt' Operation type was archived, the purchase agreements would still use it. After commit, if stock.picking_type_in record is archived, search for another (non-archived) one. OPW-2748495 closes odoo/odoo#85999 X-original-commit: ad41f939712ade80eb05c4e62406e242d223179d Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: DavidFesquet <dafr@odoo.com>