'How to print stock moves with current stock quantity

In Inventory location in module Inventory. It shows list of products in that location and the quantity of available stock. It is easy to print that out with a report.

However, if I want to show the stock moves related to each product quantity and show it under the total of each number of current stock, how can that be done?

For example: Formatting

Also, I would want to print the data out in this format. How could it be done? I have tried linking the stock.moves field to the stock.quant model but I am not sure how to present the data in that format with the current stock level as a summary above all related stock.moves



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source