[FIX] stock: check the state before put in pack
[FIX] stock: check the state before put in pack

Makes consistent the Python logic and the view.

Closes #22534
opw-813477

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