I'm trying to insert a new sale order with some lines using REST JSON 2 API, but I can only find examples about XMLRPC or JSONRPC.
I could insert empty sale order, the point is how to add lines in unique request.
I tried:
POST http://localhost:8069/json/2/sale.order/create
{
"vals_list":{
"partner_id": 6,
"order_line": [
{
"product_id": 1,
"product_uom_qty": 1
}
]
}
}But it fails with unhashable type: 'dict' error