[IMP,REMOVE]purchase_requisition:
Remove onchange_events.yml Improve the requisition2request_quotation.yml and __openerp__.py bzr revid: dbr@tinyerp.com-20111128062422-1l7jopbjkwajc3dc
This commit is contained in:
@@ -48,7 +48,6 @@ This new object will regroup and will allow you to easily keep track and order a
|
||||
'test/process/purchase_requisition_exclusive.yml',
|
||||
'test/ui/requisiton2request_quotation.yml',
|
||||
'test/process/cancel_purchase_requisition.yml',
|
||||
'test/ui/onchange_events.yml',
|
||||
'test/ui/purchase_requisition_report.yml',
|
||||
'test/ui/delete_requisition.yml',
|
||||
],
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
-
|
||||
In order to test the onchange events of purchase requisition.
|
||||
-
|
||||
I call onchange event to change the product of purchase requisition line.
|
||||
-
|
||||
!python {model: purchase.requisition.line}: |
|
||||
self.onchange_product_id(cr, uid, [ref('order_purchase_requisition1')],ref('product.product_product_hdd2'), ref('product.product_uom_unit'))
|
||||
-
|
||||
I change state of requisition in "In progress".
|
||||
-
|
||||
!python {model: purchase.requisition}: |
|
||||
self.tender_in_progress(cr, uid, ref('order_purchase_requisition1'))
|
||||
-
|
||||
I change state of requisition as "done".
|
||||
-
|
||||
!python {model: purchase.requisition}: |
|
||||
self.tender_done(cr, uid, ref('order_purchase_requisition1'))
|
||||
-
|
||||
I reset the state of requisition as "New".
|
||||
-
|
||||
!python {model: purchase.requisition}: |
|
||||
self.tender_reset(cr, uid, ref('order_purchase_requisition1'))
|
||||
-
|
||||
I call onchange event to change the partner of purchase requisition.
|
||||
-
|
||||
!python {model: purchase.requisition.partner}: |
|
||||
self.onchange_partner_id(cr, uid, ref('order_purchase_requisition1'), ref('base.res_partner_desertic_hispafuentes'))
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
partner_address_id: base.res_partner_address_3000
|
||||
partner_id: base.res_partner_desertic_hispafuentes
|
||||
-
|
||||
I click on 'Create Quotation' for creating PO.
|
||||
I click on 'Create Quotation' for creating a Quatation.
|
||||
-
|
||||
!python {model: purchase.requisition.partner}: |
|
||||
self.create_order(cr, uid, [ref("purchase_requisition_partner_0")], {"active_model": "purchase.requisition",
|
||||
"active_ids": [ref("order_purchase_requisition1")],"active_id": ref("order_purchase_requisition1"), })
|
||||
-
|
||||
I check that the purchase order is created.
|
||||
I check that the purchase order created.
|
||||
-
|
||||
!python {model: purchase.order}: |
|
||||
purchase_ids= self.search(cr, uid, [('requisition_id','=',ref("order_purchase_requisition1"))])
|
||||
@@ -20,4 +20,4 @@
|
||||
assert rfq.state == 'draft',"Purchase Order should be in draft state"
|
||||
assert rfq.partner_address_id.id == ref('base.res_partner_address_3000'),"Purchase Order Partner address is not correspond"
|
||||
assert rfq.partner_id.id == ref('base.res_partner_desertic_hispafuentes'),"Purchase Order Partner is not correspond"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user