再向您请教一个问题,order_line里面的信息我应该怎么送进去呢?比如我想建一个有两个item的order,按下面的格式送进去好像不对,谢谢
final Integer id = (Integer) models.execute("execute_kw", asList(
db, Integer.parseInt(uid), password,
"sale.order", "create",
asList(new HashMap() {
{
put("origin", 0);
put("message_follower_ids", 0);
put("order_line", asList(new HashMap() {
{
put("product_id",7);
put("product_uom",7);
put("price_unit",100);
put("product_uom_qty",1);
}
{
put("product_id",4);
put("product_uom",1);
put("price_unit",50);
put("product_uom_qty",1);
}
}));
put("partner_id", 1);
put("carrier_id", 1);
put("team_id", 1);
put("client_order_ref", 0);
}
})
));