[IMP]sale: improve the assertion
bzr revid: dbr@tinyerp.com-20111109111048-57a3e1axaeeqquhk
This commit is contained in:
@@ -126,8 +126,7 @@
|
||||
if data == True:
|
||||
partial_id = self.create(cr, uid, {},context={'active_model': 'stock.picking','active_ids': [pick_ids[0].id]})
|
||||
self.do_partial(cr, uid, [partial_id])
|
||||
#assert order.shipped == True, "Sale order is not marked as delivered"
|
||||
#assert order.invoice_ids, "Invoice not created after picking for sale order1"
|
||||
assert order.invoice_ids, "Invoice not created after picking for sale order1"
|
||||
-
|
||||
Now I create draft invoice for order2 where Invoice Policy is "Invoice based on deliveries".
|
||||
-
|
||||
@@ -138,3 +137,4 @@
|
||||
if data == True:
|
||||
self.action_invoice_create(cr, uid, pick_ids, ref('account.expenses_journal'))
|
||||
assert order.invoice_ids, "Invoice not created after picking for sale order2"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user