I have a system in Laravel for electronic invoicing and I enabled it as API (it receives JSON, it generates XML and it sends to SUNAT Peru), what I need is to develop a module to send json from odoo 11 to the API.
Could anyone help me please.
Regards,
Enviar datos usando POST en odoo a PHP
Tengo un sistema en Laravel de facturación electrónica y lo habilité como API (recepciona JSON, genera XML y envia a SUNAT Perú), lo que necesito es desarrollar un modulo para enviar json desde odoo 11 a la API.
Alguien podría ayudarme por favor.
Saludos,
Hi, You can create a button or crone job to run a python function and from it you can send or receive any kind of API.
Thanks, it worked for me using the button and sending the JSON using requests.post().
Now I have another problem, I want to add a QR code in the PDF of the invoice any idea?
@Gonzalo Apaza How did you send some data from Odoo to API, and also how did you see the response code? Can you give me some sample of code of sending data from odoo to api? I am also having a problem with sending data from odoo to api. I also have a button to call the function for sending data.