[FIX] purchase: cancel lines when cancel purchase order

Backport of 8.0 behaviour.
When canceling a purchase.order, change also the state of the lines and linked procurements.
Fixes #4168
[IMP] purchase: remove useless name_get

because why???