[FIX] purchase: added active_model: stock.picking to a test.
bzr revid: vmt@openerp.com-20110718151403-afci1t50838p6o1s
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
pur_id1=pur_obj.browse(cr, uid, ref("purchase_order_po2"))
|
||||
pick_ids = [x.id for x in pur_id1.picking_ids]
|
||||
id = self.create(cr, uid, {'invoice_date': time.strftime('%Y-%m-%d'), 'journal_id': ref('account.expenses_journal')},
|
||||
{'active_ids': pick_ids})
|
||||
{'active_ids': pick_ids, 'active_model': 'stock.picking'})
|
||||
self.create_invoice(cr, uid, [id], {"active_ids": pick_ids, "active_id": pick_ids[0]})
|
||||
-
|
||||
I check that an invoice_ids field of Delivery&Invoices gets bind with the value.
|
||||
|
||||
Reference in New Issue
Block a user