Merge lp:~therp-nl/ocb-addons/7.0-lp1250053-fix_mrp_test_state_ready into lp:ocb-addons

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Approved by: Holger Brunn (Therp)
Approved revision: no longer in the source branch.
Merged at revision: 10025
Proposed branch: lp:~therp-nl/ocb-addons/7.0-lp1250053-fix_mrp_test_state_ready
Merge into: lp:ocb-addons
Diff against target: 12 lines (+1/-1)
1 file modified
mrp/test/bom_with_service_type_product.yml (+1/-1)
To merge this branch: bzr merge lp:~therp-nl/ocb-addons/7.0-lp1250053-fix_mrp_test_state_ready
Reviewer Review Type Date Requested Status
Yannick Vaucher @ Camptocamp Approve
Holger Brunn (Therp) code review Approve
Pedro Manuel Baeza Approve
Raphaël Valyi - http://www.akretion.com Approve
Review via email: mp+210965@code.launchpad.net

Commit message

[FIX] Update mrp test with fix for lp:1250053

Description of the change

Adapts mrp test to the fix for lp:1250053. With this fix, your production order will become ready when you have the materials.

To post a comment you must log in.
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

LGTM

review: Approve
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Thank you

Regards.

review: Approve
Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve (code review)
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp/test/bom_with_service_type_product.yml'
2--- mrp/test/bom_with_service_type_product.yml 2013-09-12 11:04:54 +0000
3+++ mrp/test/bom_with_service_type_product.yml 2014-03-14 05:59:07 +0000
4@@ -40,7 +40,7 @@
5 -
6 !python {model: mrp.production}: |
7 order = self.browse(cr, uid, ref("mrp_production_servicetype_mo1"))
8- assert order.state == 'confirmed', "Production order should be confirmed."
9+ assert order.state == 'ready', "Production order should be ready."
10 for move_line in order.move_lines:
11 move_line.action_consume(move_line.product_qty)
12 -