[FIX] procurement: add condition check_move for transition confirm_mto->ready in procurement workflow

When no other module is installed, no change of behaviour (check_move returns None, always True)
When stock_location is installed, depending of the order of evaluation of the conditions, could go to ready without passing by move activity, avoid this
Courtesy of Mohammad Alhashash

lp bug: https://launchpad.net/bugs/1193779 fixed

bzr revid: mat@openerp.com-20131114162553-5yzgp4hy9dqdan5t
This commit is contained in:
Martin Trigaux 2013-11-14 17:25:53 +01:00
commit 7a752f5f03
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@
-->
<field name="act_from" ref="act_confirm_mto"/>
<field name="act_to" ref="act_make_done"/>
<field name="condition">not check_produce() and not check_buy()</field>
<field name="condition">not check_produce() and not check_buy() and not check_move()</field>
</record>
<record id="trans_make_to_stock_make_done" model="workflow.transition">