2 In order to test "mrp_repair" module, I start with confirm state, and start repair.
4 I confirm Repair order for Invoice Method 'No Invoice'.
6 !workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp1}
8 I start the repairing process by clicking on "Start Repair" button for Invoice Method 'No Invoice'.
10 !workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp1}
12 I check its state which is in "Under Repair".
14 !assert {model: mrp.repair, id: mrp_repair_rmrp1}:
15 - state == 'under_repair'
17 Repairing process for product is in Done state and I end this process by clicking on "End Repair" button.
19 !workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp1}
21 I define Invoice Method 'No Invoice' option in this repair order.
22 So, I check that Invoice should not be created for this repair order.
24 !python {model: mrp.repair}: |
25 repair_id = self.browse(cr, uid, [ref('mrp_repair_rmrp1')], context=context)[0]
26 assert not repair_id.invoice_id.id, _("Invoice should not be exists for this repair order")