Technical 邮件列表存档

technical@mail.odoo.com

头像

Re: Purchases

by
Elico Solutions Pte Ltd, dominique kon sun tack
- 2019年07月02日 10时47分25秒
What do you mean by "Application", is it an external application, that does a call to odoo thru xmlrpc?

one solution would be:
- when you create a sale order, set on the sale order line, a MTO route
- confirm the sale order by xmlrpc
- this will automatically create a draft purchase order, if all the config is done properly.

confirming a sale order, can be done by executing a method linked to the button "Confirm". In odoo, the name of the button is the name of the method, (if the button type is 'object')
so once you know the button name, you will know the name of the method to call.
To know the name of the button, switch to developer mode, and with the mouse cursor, hover over the button. --> the button name will be shown.

Cheers,

Dominique KON-SUN-TACK


On Tue, 2 Jul 2019 at 22:29, Guido Schaidl <guidoscha@arcor.de> wrote:
Hi Dom,

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:

HI, Guido,

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?

Thanks

Dom

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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

参考

  • 头像

    Purchases

    by
    guidoscha
    - 2019年07月02日 09时42分24秒 - 0

    9 回复 9 回复