跳至內容
選單
此問題已被標幟
1 回覆
5370 瀏覽次數

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 !!!

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
2月 24
1680
2
12月 23
41088
3
8月 25
3296
3
10月 24
8497
2
3月 24
5842