[FIX] sale_stock: Exception created on wrong or cancelled delivery orde
[FIX] sale_stock: Exception created on wrong or cancelled delivery orde

Steps to reproducethe bug:

- Create a SO with N units of a storable product P
- Confirm the SO, cancel it, reset it to a quotation and confirm it
- Change the quantity of P to N-1 units on the SO

Bug:

The canceled picking linked to the SO had an activity exception

opw:2199962

closes odoo/odoo#49267

X-original-commit: 916071a06ebfb11b0a2d0d420b7682ee64a7c3d2
Signed-off-by: Simon Goffin (sig) <b3ed2cf313e7546085c3c50622143ff31e467d23@openerp.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo