[FIX] sale: yaml issue
authorHarry (OpenERP) <hmo@tinyerp.com>
Fri, 12 Nov 2010 13:49:53 +0000 (19:19 +0530)
committerHarry (OpenERP) <hmo@tinyerp.com>
Fri, 12 Nov 2010 13:49:53 +0000 (19:19 +0530)
bzr revid: hmo@tinyerp.com-20101112134953-mzm3yccizmxycb3l

addons/sale/test/invoice_on_shipped_qty.yml
addons/sale/test/picking_order_policy.yml

index 3ed4387..fb21730 100644 (file)
@@ -74,7 +74,7 @@
     ids = [x.id for x in sale_id.picking_ids]
     wiz_id = self.create(cr, uid, {'invoice_date': '2010-07-17', 'journal_id': ref('account.sales_journal')},
       {'active_ids': ids})
-    self.create_invoice(cr, uid, [wiz_id], {"active_ids": ids})
+    self.create_invoice(cr, uid, [wiz_id], {"active_ids": ids, "active_id": ids[0]})
 -
   I verify whether the invoice has been generated for SO
 -
index b12bddd..de18c1c 100644 (file)
@@ -67,7 +67,7 @@
     ids = [x.id for x in sale_id.picking_ids]
     wiz_id = self.create(cr, uid, {'invoice_date': '2010-07-15', 'journal_id': ref('account.sales_journal')},
       {'active_ids': ids})
-    self.create_invoice(cr, uid, [wiz_id], {"active_ids": ids})
+    self.create_invoice(cr, uid, [wiz_id], {"active_ids": ids, "active_id": ids[0]})
 -
   I check that an invoice has been created.
 -