i have written an application that has orders with products on it. As soon as the order is confirmed products in the order should be purchased from a supplier.
Exactly like the sales app does it. Quotation is confirmed. You have a request for Quotation instanly with the products of the Quotation/Order with the attribute "make to order".
I don't know how to do this and where i can find the code for this. I can't find it in the sales app or purchase app.In the sale app it should be in action_confirm(_action confirm, action_done). It's not.
There is an scheduled Action called Procurement, but it runs daily. The creation of the request for quotation is done instantly.
On 02.07.19 15:59, Dominic Pain wrote:
Not too sure what you mean - but I've worked on an api which does an rpc call to create SO's "automatically". The API itself is php, but does a xml-rpc call to the sale_order.create method. This is using odoo 10.
I'm now working my way towards odoo 12, and there's definitely a "Scheduled Action" facility there. I can't *imagine* that Belgium removed that for odoo 11 and then replaced it in 12?
Can you provide more info?
On 02/07/2019 14:45, Guido Schaidl wrote:
Hello, i want to add automated ordering of products to my application. Pretty much like it's done in the sales app. I want to genearate a Request for every product in a confirmed status with "make to order" attribute. I older versions there was a sheduler. That's not there anymore. How does it works in version 11? Can someone point me to the model/application that does it? Is there some documentation? Regards Guido