[IMP] improves the add/remove actions and preview buttons in email template form...
[odoo/odoo.git] / addons / mrp_repair / test / test_mrp_repair_b4inv.yml
1 -
2   Now I test for Invoice Method 'Before Repair' with giving the access rights of mrp user.
3 -
4   !context
5     uid: 'res_mrp_repair_user'
6 -
7   I confirm Repair order for Invoice Method 'Before Repair'.
8 -
9   !workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp2}
10 -
11   I change Repair order state to 'Ready'.
12 -
13   !python {model: mrp.repair}: |
14     self.action_repair_ready(cr, uid, [ref('mrp_repair_rmrp2')], context=None)
15 -
16   I click on "Create Invoice" button of this wizard to make invoice.
17 -
18   !workflow {model: mrp.repair, action: action_invoice_create, ref: mrp_repair_rmrp2}
19 -
20   I check that invoice is created for this Repair order.
21 -
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."
25 -
26   I start the Repairing process by clicking on "Start Repair" button.
27 -
28   !workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp2}
29 -
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'.
31 -
32   !workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp2}