Hello, I’m fairly new to using Odoo and I have a question.
I am using the Odoo service to have the server in order to create invoices, and I am currently using it via the API.
My question is about how the body of my request should look in order to generate a link (or something) to download the PDF of an invoice?
I have this:
Endpoint: [domain].odoo.com/web/dataset/call_kw
Body:
{
"jsonrpc": "2.0",
"method": "call",
"params": {
"model": "account.move",
"method": "print_document",
"args": [6],
"kwargs": {}
},
"id": 1
}
Error:
The method 'print_document' does not exist on the model 'account.move'
Thank you very much