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

Proposed by Ronald Portier (Therp)
Status: Rejected
Rejected by: Stefan Rijnhart (Opener)
Proposed branch: lp:~therp-nl/ocb-addons/7.0_lp1193779_internal_moves_not_created
Merge into: lp:ocb-addons
Diff against target: 12 lines (+1/-1)
1 file modified
procurement/procurement_workflow.xml (+1/-1)
To merge this branch: bzr merge lp:~therp-nl/ocb-addons/7.0_lp1193779_internal_moves_not_created
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) Needs Information
Review via email: mp+186292@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

is this a workaround for the issue mentioned in https://bugs.launchpad.net/ocb-addons/+bug/1193779/comments/5 or do we genuinely need check_move() here?

review: Needs Information
Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hi Guys

Have you check my answer on the bug report https://bugs.launchpad.net/ocb-addons/+bug/1193779/comments/5

It fix the general issue with workflow engine, if you inherit transition to add your specific test case.

Regards,

Revision history for this message
Mohammad Alhashash (alhashash) wrote :

> is this a workaround for the issue mentioned in https://bugs.launchpad.net
> /ocb-addons/+bug/1193779/comments/5 or do we genuinely need check_move() here?

check_move() is required. order_by is not required as per the mentioned comment as workflow transitions should be deterministic and not dependent on the order of evaluation.

BTW, the branch is now committed into official 7.0

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thank you Mohammed for your work and for the clarification! Setting this MP to rejected because the patches has been adopted in official 7.0.

Unmerged revisions

9511. By alhashash

[FIX] Fixes lp1193779 - Pull flows do not create procurement internal moves

    Backport of fix proposed by Mohammed Alhashash for openobject-addons.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'procurement/procurement_workflow.xml'
2--- procurement/procurement_workflow.xml 2012-10-23 16:05:04 +0000
3+++ procurement/procurement_workflow.xml 2013-09-18 11:33:27 +0000
4@@ -153,7 +153,7 @@
5 -->
6 <field name="act_from" ref="act_confirm_mto"/>
7 <field name="act_to" ref="act_make_done"/>
8- <field name="condition">not check_produce() and not check_buy()</field>
9+ <field name="condition">not check_produce() and not check_buy() and not check_move()</field>
10 </record>
11
12 <record id="trans_make_to_stock_make_done" model="workflow.transition">