Launchpad automatic translations update.
[odoo/odoo.git] / addons / mrp_repair / test / test_mrp_repair_b4inv.yml
1 -
2   Now I test for Invoice Method 'Before Repair'.
3 -
4   I confirm Repair order for Invoice Method 'Before Repair'.
5 -
6   !workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp2}
7 -
8   I change Repair order state to 'Ready'.
9 -
10   !python {model: mrp.repair}: |
11     self.action_repair_ready(cr, uid, [ref('mrp_repair_rmrp2')], context=None)
12 -
13   I click on "Create Invoice" button of this wizard to make invoice.
14 -
15   !workflow {model: mrp.repair, action: action_invoice_create, ref: mrp_repair_rmrp2}
16 -
17   I check that invoice is created for this Repair order.
18 -
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.")
22 -
23   I start the Repairing process by clicking on "Start Repair" button.
24 -
25   !workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp2}
26 -
27   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'.
28 -
29   !workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp2}