Skip to Content
Menu
This question has been flagged
1 Reply
4038 Views

Hi All,

Brand new here. Doing some work for a client running Odoo.

Essentially we will be creating Sales Orders in a Rails Application which then need to be sent across to Odoo.

Is there any documentation anywhere on how to achieve this? I have search for hours and can find no samples.

I think I understand the model concept. Eg. sales.order is a model with related lines and that create is a operation but what should we send through that operation?

Is there any proper docs describing how to create sales orders. Eg. how to use it, definition of all parameter we need to send what's is the response format etc.

Currently I'm able to connect to the Client's Odoo system through api and can execute operations like(read, search) through api etc. But do not know how to create an Order and the associated lines.

I'm sure this can't be too difficult. Any guidance will be greatly appreciated.

Thanks in advance Odooers !!!

Avatar
Discard
Best Answer

Hi,

Please refer this Odoo documentation about the web service API,  it is explained in it with sample codes

https://www.odoo.com/documentation/10.0/api_integration.html

To create a record in a model,

id = models.execute_kw(db, uid, password, 'res.partner', 'create', [{
    name: "New Partner",
}])

Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 24
457
2
Dec 23
38731
3
Oct 24
6909
3
Aug 24
848
2
Mar 24
3964