2 Now test invoice type before repair.
4 I Confirm Repair order For Invoice Type Before Repair.
6 !workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp2}
8 Repair order state to 'Ready'.
10 !python {model: mrp.repair}: |
11 self.action_repair_ready(cr, uid, [ref('mrp_repair_rmrp2')], context=None)
13 I click on "Create Invoice" button of this wizard to make invoice.
15 !workflow {model: mrp.repair, action: action_invoice_create, ref: mrp_repair_rmrp2}
17 I check that Invoice is created for this repair order.
19 !python {model: mrp.repair}: |
20 repair_id = self.browse(cr, uid, [ref('mrp_repair_rmrp2')], context=context)[0]
21 assert repair_id.invoice_id.id, _("No invoice exists for this repair order.")
23 I start the repairing process by click on "Start Repair" Button.
25 !workflow {model: mrp.repair, action: action_repair_start, ref: mrp_repair_rmrp2}
27 Repairing Process for product is Done and I End Repair process by click on "End Repair" button For Invoice Type before repair.
29 !workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp2}