Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2577 Vizualizări

Hi, 

I have a api and this api returning a binary pdf.

This pdf is changing everytime when a request come and i don't want the store it.


Simply i want the create a button and this should trigger a function.

Function should be take my api response (binary pdf) and show this pdf to user in interface. (with download button) 


Thanks for any suggestion

Imagine profil
Abandonează

Hello @Selman Yilmaz
Hope you are doing well.

I would like to assist you with your requirement.

we can have a detailed discussion regarding the same over Email : Vanessa (at) cisinlabs (dot) com or you can connect me over Skype Directly : Live:Vanessa_12766

looking forward to have your response soon.

Best Regards,
Vanessa J

Cel mai bun răspuns

Hello Selman Yilmaz,

Please find code in comment. 

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Imagine profil
Abandonează

You can add a button in the form view by using the xpath .

<button name="call_api" string="Download" type="object"/>

now create the function name "call_api" in the related model.

def call_api(self):
your api code
.
.
.
.
.

Related Posts Răspunsuri Vizualizări Activitate
0
ian. 23
1562
0
iul. 24
685
1
feb. 24
3151
1
dec. 23
1718
2
aug. 23
1594