[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:
@@ -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.
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user