-
  In order to test process of the Sale Order, I create sale order
-
  !record {model: sale.order, id: sale_order_test1}:
    partner_id: base.res_partner_2
    note: Invoice after delivery
    payment_term: account.account_payment_term
-
  !record {model: sale.order.line, id: line}:
    name : 'LCD Monitor'
    order_id: sale_order_test1
    product_id: product.product_product_7
    price_unit: 190.50
    product_uom_qty: 8

-
  In order to test process of the Sale Order, I create sale order
-
  !record {model: sale.order, id: sale_order_test1}:
    name: self.pool.get('ir.sequence').get(cr, uid, 'sale.order')
    partner_id: base.res_partner_2
    note: Invoice after delivery
    payment_term: account.account_payment_term
-
  !record {model: sale.order.line, id: line}:
    name : 'LCD Monitor'
    order_id: sale_order_test1
    product_id: product.product_product_7
    price_unit: 190.50
    product_uom_qty: 8

Remove duplicate key value violates unique constraint sale_order_name_uniq
[FIX] Remove duplicate key value violates unique constraint sale_order_name_uniq

bzr revid: hip@tinyerp.com-20121005060802-wrawkel4j7evhkpa