[IMP] mrp_jit, mrp_repair: Improved yml

bzr revid: pso@tinyerp.com-20120726100005-zgtul1s7g7bvounr
This commit is contained in:
pso (OpenERP) 2012-07-26 15:30:05 +05:30
parent 4a440a9953
commit a528e41af5
4 changed files with 22 additions and 22 deletions

View File

@ -1,6 +1,6 @@
-
In order to test mrp_jit module with OpenERP, I will create manufacturing order
and check whether the procurement orders run without scheduler or not.
In order to test mrp_jit module with OpenERP, I create manufacturing order
and check whether the procurement order run without scheduler or not.
-
!record {model: procurement.order, id: mrp_production_mo0}:
company_id: base.main_company

View File

@ -1,25 +1,25 @@
-
In order to test invoice type after repair.
In order to test Invoice Method 'After Repair'.
-
I Confirm Repair order For Invoice Type After repair.
I confirm Repair order taking Invoice Method 'After Repair'.
-
!workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp0}
-
I start the repairing process by click on "Start Repair" Button For Invoice Type After repair.
I start the Repairing process by clicking on "Start Repair" button for Invoice Method 'After Repair'.
-
!workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp0}
-
I check that state is "Under Repair".
I check the state is in "Under Repair".
-
!assert {model: mrp.repair, id: mrp_repair_rmrp0}:
- state == 'under_repair'
-
Repairing Process for product is Done and I End Repair process by click on "End Repair" button.
Repairing process for product is in Done state and I end Repair process by clicking on "End Repair" button.
-
!workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp0}
-
I define invoiced after repair option in this Repair order.
so I create Invoice by click on "Make Invoice" wizard.
I define Invoice Method 'After Repair' option in this Repair order.
so I create invoice by clicking on "Make Invoice" wizard.
-
!record {model: mrp.repair.make_invoice, id: mrp_repair_make_invoice_0}:
group: 1
@ -29,7 +29,7 @@
!python {model: mrp.repair.make_invoice}: |
self.make_invoices(cr, uid, [ref("mrp_repair_make_invoice_0")], {"active_ids": [ref("mrp_repair.mrp_repair_rmrp0")]})
-
I check that Invoice is created for this repair order.
I check that invoice is created for this Repair order.
-
!python {model: mrp.repair}: |
repair_id = self.browse(cr, uid, [ref('mrp_repair_rmrp0')], context=context)[0]

View File

@ -1,11 +1,11 @@
-
Now test invoice type before repair.
Now I test for Invoice Method 'Before Repair'.
-
I Confirm Repair order For Invoice Type Before Repair.
I confirm Repair order for Invoice Method 'Before Repair'.
-
!workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp2}
-
Repair order state to 'Ready'.
I change Repair order state to 'Ready'.
-
!python {model: mrp.repair}: |
self.action_repair_ready(cr, uid, [ref('mrp_repair_rmrp2')], context=None)
@ -14,16 +14,16 @@
-
!workflow {model: mrp.repair, action: action_invoice_create, ref: mrp_repair_rmrp2}
-
I check that Invoice is created for this repair order.
I check that invoice is created for this Repair order.
-
!python {model: mrp.repair}: |
repair_id = self.browse(cr, uid, [ref('mrp_repair_rmrp2')], context=context)[0]
assert repair_id.invoice_id.id, _("No invoice exists for this repair order.")
-
I start the repairing process by click on "Start Repair" Button.
I start the Repairing process by clicking on "Start Repair" button.
-
!workflow {model: mrp.repair, action: action_repair_start, ref: mrp_repair_rmrp2}
-
Repairing Process for product is Done and I End Repair process by click on "End Repair" button For Invoice Type before repair.
Repairing process for this product is in Done state and I end this process by clicking on "End Repair" button for Invoice Method 'Before Repair'.
-
!workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp2}

View File

@ -1,24 +1,24 @@
-
In order to test "mrp_repair" module, I start from confirm it, and start repair.
In order to test "mrp_repair" module, I start with confirm state, and start repair.
-
I Confirm Repair order for Invoice Type 'None'.
I confirm Repair order for Invoice Method 'No Invoice'.
-
!workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp1}
-
I start the repairing process by click on "Start Repair" Button For Invoice Type None.
I start the repairing process by clicking on "Start Repair" button for Invoice Method 'No Invoice'.
-
!workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp1}
-
I check that state is "Under Repair".
I check its state which is in "Under Repair".
-
!assert {model: mrp.repair, id: mrp_repair_rmrp1}:
- state == 'under_repair'
-
Repairing Process for product is Done and I End Repair process by click on "End Repair" button.
Repairing process for product is in Done state and I end this process by clicking on "End Repair" button.
-
!workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp1}
-
I define invoiced none option in this Repair order.
I define Invoice Method 'No Invoice' option in this repair order.
So, I check that Invoice should not be created for this repair order.
-
!python {model: mrp.repair}: |