I'm a newer(noob) in Odoo, and I'm trying to integrate my backend with Odoo sales module. I want to automate my invoice/bill/paiement workflow. I'll be using Stripe for the payment solution. The main goal is to create invoice from my backend, validate them, and deal with stripe to perform the paiement.
My first question is, do I need to develop from scratch a solution using the API or is it better to use solution from the Odoo marketplace?
I already tried the API, but it seems to have a steep learning curve. I tried to use python libraries such as oerplib or odooerp but I faced different problems. As you can see, I'm a little bit lost, and it would grateful if you could give me some advices, good refs.
By the way I don't really understand the structure of the model used by ODOO, is the best way to inspect the models through the API ?
Thank you for your advices !
are you talking about payment integration?
Yes, well a basic workflow would be the following :
From the webpage, the client request for a quotation (so I want to generate a quotation from my python webserver using ODOO). Then if the client agrees, an invoice is created, and the customer is invited to pay the bill (I already connected it with Stripe). I hope it's clearer now ! Thanks
odoo provides already functionality what you wanted.
Did you get test credential from strip https://dashboard.stripe.com/register ?
Yes, I got them from Stripe, and added them to Odoo so it's ok. If Odoo has already these functionality, could you please link the refs ? Thanks !
Hi Try to check this.
https://www.odoo.com/documentation/user/12.0/sales/send_quotations/get_paid_to_validate.html
Thanks Silverstar ! So now I set up stripe with Odoo, thanks very much.
I'm still trying to use the API in order to create invoices. I can create new ones, read them but I don't understand with there are some inconsistencies between what I get from the API and what I see on the platform (I'm using the Saas solution). For example I create a new invoice in the Odoo platform and I can't see it when fetching the invoices from the API.
you mean to create invoice in odoo? or in strip itself?