title: How to set value of 'state' (status) field of sale.order using c# code in Odoo?
body: <p>I'm inserting sales order by c# successfully, but this order going to Quotation by default.</p>
  
  <p>Now, if i'm success full passed value of 'state'(status) fields of sale.order then this entry goes to Order instead of  Quotation.</p>
  
  <p>But i don't know how to set 'state' of sale.order using c# code ?</p>
  
  <p>Please have look,</p>
  
  <pre><code>loRecordPairSalesOrder.Add("partner_id", liCustomerID);
  loRecordPairSalesOrder.Add("user_id", liEmployee_ID);
  loRecordPairSalesOrder.Add("name", loSales.lsTransReference);
  loRecordPairSalesOrder.Add("date_order", loSales.lsTransactionDate);
  loRecordPairSalesOrder.Add("state", "done");
  loRecordPairSalesOrder.Add("note", loSales.lsComment);
  loRecordPairSalesOrder.Add("validity_date", loSales.lsCompletedDate);
  loRecordPairSalesOrder.Add("amount_total", 
  Convert.ToString(loSales.lfMainAmount));
  liOrder_ID = loRpcRecord.create(Common.lsDbName, liUserid, 
  Common.lsDbPassword, "sale.order", "create", loRecordPairSalesOrder);
  </code></pre>