Commit 0b959525 authored by Sebastien Robin's avatar Sebastien Robin

make sure to check stock values in deliver_action of checkbook_movement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08c3f678
......@@ -82,6 +82,11 @@ if len(line_list)==0:\n
\n
if msg is not None:\n
raise ValidationFailed, (msg,)\n
\n
\n
baobab_source = transaction.getBaobabSource()\n
at_date = transaction.getStartDate()\n
transaction.CheckbookDelivery_checkAggregateStockList(at_date=at_date, node_url = baobab_source)\n
</string> </value>
</item>
<item>
......@@ -137,6 +142,8 @@ if msg is not None:\n
<string>msg</string>
<string>line_list</string>
<string>len</string>
<string>baobab_source</string>
<string>at_date</string>
</tuple>
</value>
</item>
......
......@@ -51,7 +51,7 @@
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string>validateSourceAndDestination</string> </value>
<value> <string>validateCheckbookVaultTransferConsistency</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -51,7 +51,7 @@
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
<value> <string>validateSourceAndDestination</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
154
\ No newline at end of file
156
\ 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