I am creating a custom report in Inventory (stock) module for which I have created a pop up view (window) for selection then after clicking a submit button, a python functio