Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
330 stars 374 forks source link

Http Request CSRF_TOKEN #297

Open AsKaeternam opened 7 years ago

AsKaeternam commented 7 years ago

Hello dear,

I'm actually working on a mobile application which need to call an http query to Odoo,

The goal is to render invoices and download the pdf in the mobile application

Unfortunatly Odoo return the message below :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

400 Bad Request
                                                   <h1>Bad Request</h1>
                                                   <p>Invalid CSRF Token</p>

I've try to add a csrf_token parameter to the request but it's not working.

Do you have any idea ?

adam-nadar commented 7 years ago

@AsKaeternam in our case for getting any binary data,we always prefer to get the data from ir_attachment n update the record for every request

AsKaeternam commented 5 years ago

Is someone able to render and download invoices pdf with Odoo Mobile framework ?

Best regards,