[FIX] sale_order_partial_invoice: Don't change state manually