[FIX]purchase_requisition test: fix the test because we changed the workflow of tender

bzr revid: csn@openerp.com-20130531144132-blpslz3i2ixodroh
This commit is contained in:
Cedric Snauwaert
2013-05-31 16:41:32 +02:00
parent f887094b49
commit 88a77ec6d5
2 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -48,8 +48,8 @@ keep track and order all your purchase orders.
'auto_install': False,
'test': [
'test/purchase_requisition_demo.yml',
'test/purchase_requisition.yml',
'test/cancel_purchase_requisition.yml',
'test/purchase_requisition.yml',
],
'installable': True,
}
@@ -31,10 +31,20 @@
assert line.product_uom_id.id == procurement.product_uom.id, "UOM is not correspond."
assert line.product_qty == procurement.product_qty, "Quantity is not correspond."
-
I open another requisition.
I send the purchase order associated to the requisition.
-
!python {model: purchase.requisition}: |
po = self.pool.get('purchase.order')
for element in self.browse(cr, uid, [ref("requisition1")], context=context):
for purchase in element.purchase_ids:
po.write(cr, uid, purchase.id, {'state': 'sent'}, context=context)
-
I open another requisition and set tender state to choose bidding line.
-
!python {model: purchase.requisition}: |
self.tender_in_progress(cr, uid, [ref("requisition1")], context=context)
self.tender_open(cr, uid, [ref("requisition1")], context=context)
-
Supplier send one RFQ so I create requisition request of that supplier.
-