Commit 239a65da authored by Romain Courteaud's avatar Romain Courteaud

Wrong removal during d3b46149

parent cce7dea2
...@@ -52,11 +52,20 @@ ...@@ -52,11 +52,20 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>sale_order = context.getParentValue()\n <value> <string>sale_order = context.getParentValue()\n
if sale_order.getSimulationState() == \'ordered\':\n if sale_order.getSimulationState() == \'ordered\':\n
try:\n
sale_order.Base_checkConsistency()\n
except ValidationFailed:\n
# order not ready yet\n
pass\n
else:\n
try:\n try:\n
sale_order.confirm()\n sale_order.confirm()\n
except ValueError:\n except ValueError:\n
# It was not possible to find free Computer Partition\n # It was not possible to find free Computer Partition\n
pass\n pass\n
except Unauthorized:\n
# user has bad balance\n
pass\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
574 575
\ No newline at end of file \ No newline at end of file
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