Access portal page Context object in javascript

Hi Members,

In the supplier portal page , i want to have a button when clicked downloads a CSV file with serial numbers for items in the quotation.

I know to place the button anywhere in the screen using javascript is not problem.

I want to know how to get/pass the context object data to the javascript file which I will include in my custom app using app_include_js property the hook.py.

Eventually I need get the context object in the javascript.

Please enlighten.

Thanks :blush: