title: OpenERP XMLRPC: How to create complete orders?
body: <p>I'm trying to create a complete order (with order lines) with openERP XMLRPC. I've got this:</p>
  
  <pre><code>order = [
     'shop_id': 1,
     'state': 'draft',
     'date_order': '2013-09-01',
     'user_id': 1,
     'partner_id': 7,
     'partner_invoice_id': 1,
     'partner_order_id': 1,
     'partner_shipping_id': 1,
     'picking_policy': 'direct',
     'order_policy': 'manual',
     'pricelist_id': 1,
     'note': 'note',
     'lines': [
              [
                  'qty': 1,
                  'product_id': 1,
              ]
          ],
  ]
  
  order_id = openerp.execute(dbname, uid, pwd, 'sale.order', 'create', order)
  </code></pre>
  
  <p>it effectively creates a sales order, but without any order line... any advice for me? I'm looking for a solution for hours</p>