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 ...@@ -82,6 +82,11 @@ if len(line_list)==0:\n
\n \n
if msg is not None:\n if msg is not None:\n
raise ValidationFailed, (msg,)\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> </string> </value>
</item> </item>
<item> <item>
...@@ -137,6 +142,8 @@ if msg is not None:\n ...@@ -137,6 +142,8 @@ if msg is not None:\n
<string>msg</string> <string>msg</string>
<string>line_list</string> <string>line_list</string>
<string>len</string> <string>len</string>
<string>baobab_source</string>
<string>at_date</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <string>validateSourceAndDestination</string> </value> <value> <string>validateCheckbookVaultTransferConsistency</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Guard" module="Products.DCWorkflow.Guard"/>
<string>Products.DCWorkflow.Guard</string> <tuple/>
<string>Guard</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <string></string> </value> <value> <string>validateSourceAndDestination</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
154 156
\ 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