Commit 9a849f50 authored by Aurel's avatar Aurel

compute source when in delivered state to prevent wrong check of inventory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11cb4c5d
......@@ -68,7 +68,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return "%s/surface/caisse_courante/encaisse_des_billets_et_monnaies" %(context.getSource(),)\n
<value> <string>if context.getSimulationState() == "deliver":\n
return "%s/surface/caisse_courante/encaisse_des_billets_et_monnaies" %(context.getSource(),)\n
else:\n
return None\n
</string> </value>
</item>
<item>
......@@ -121,6 +124,7 @@
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>None</string>
</tuple>
</value>
</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment