I am trying to create a sales order quotation using the php ripcord API.
I am able to create the quotation but quotation has no any product.
Means I am unable to add the products inside the quotations.
require_once('ripcord/ripcord.php');
// Login to the account
$common = ripcord::client($url.'/xmlrpc/2/common');
$uid = $common->authenticate($db, $username, $password, array());
$models = ripcord::client("$url/xmlrpc/2/object");
$quotation = $models->execute_kw($db, $uid, $password,
'sale.order', 'create',
array(array('partner_id'=> 7,
'product_id'=> 30,
'name'=>'Hello1',
'product_uom_qty'=>10,
'price_unit'=>300,
'price_total'=>3000,
'payment_term' => 1, //immediate payment
// 'medium_id' => 1
)));
echo 'created new sale order with id:' . $quotation;
I am new at Odoo, Kindly help me
Thanks