2 Now I test for Invoice Method 'Before Repair' with giving the access rights of mrp user.
5 uid: 'res_mrp_repair_user'
7 I confirm Repair order for Invoice Method 'Before Repair'.
9 !workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp2}
11 I change Repair order state to 'Ready'.
13 !python {model: mrp.repair}: |
14 self.action_repair_ready(cr, uid, [ref('mrp_repair_rmrp2')], context=None)
16 I click on "Create Invoice" button of this wizard to make invoice.
18 !workflow {model: mrp.repair, action: action_invoice_create, ref: mrp_repair_rmrp2}
20 I check that invoice is created for this Repair order.
22 !python {model: mrp.repair}: |
23 repair_id = self.browse(cr, uid, [ref('mrp_repair_rmrp2')], context=context)[0]
24 assert repair_id.invoice_id.id, "No invoice exists for this repair order."
26 I start the Repairing process by clicking on "Start Repair" button.
28 !workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp2}
30 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'.
32 !workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp2}