Launchpad automatic translations update.
[odoo/odoo.git] / addons / mrp_repair / test / test_mrp_repair_noneinv.yml
1 -
2   In order to test "mrp_repair" module, I start with confirm state, and start repair.
3 -
4   I confirm Repair order for Invoice Method 'No Invoice'.
5 -
6   !workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rmrp1}
7 -
8   I start the repairing  process by clicking on "Start Repair" button for Invoice Method 'No Invoice'.
9 -
10   !workflow {model: mrp.repair, action: repair_ready, ref: mrp_repair_rmrp1}
11 -
12   I check its state which is in "Under Repair".
13 -
14   !assert {model: mrp.repair, id: mrp_repair_rmrp1}:
15       - state == 'under_repair'
16 -
17   Repairing process for product is in Done state and I end this process by clicking on "End Repair" button.
18 -
19   !workflow {model: mrp.repair, action: action_repair_end, ref: mrp_repair_rmrp1}
20 -
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.
23 -
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")
27