Commit 8e6eabe1 authored by Aurel's avatar Aurel

allow movement from "serre" vault only for coins

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58bc3fd5
...@@ -267,18 +267,15 @@ ...@@ -267,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<string>Products.Formulator.TALESField</string> <tuple/>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.Delivery_getVaultItemList(current_url=here.getSource(), vault_type=(\'site/caveau/serre/transit\',))</string> </value> <value> <string>python:here.Delivery_getVaultItemList(current_url=here.getSource(), vault_type=(\'site/caveau/serre/transit\',\'site/caveau/serre\',), exclude_vault_type=(\'site/caveau/serre/retire\',))</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from DateTime import DateTime\n <value> <string>from DateTime import DateTime\n
\n \n
\n
container_portal_type_list = ["Monetary Reception",]\n container_portal_type_list = ["Monetary Reception",]\n
base_price_dict = {}\n base_price_dict = {}\n
\n \n
...@@ -80,7 +81,15 @@ if listbox is None:\n ...@@ -80,7 +81,15 @@ if listbox is None:\n
, \'portal_status_message=Please+select+a+source.\'\n , \'portal_status_message=Please+select+a+source.\'\n
)\n )\n
return request.RESPONSE.redirect( redirect_url )\n return request.RESPONSE.redirect( redirect_url )\n
\n \n
if \'serre/encaisse_des_billets_neufs_non_emis\' in node:\n
request = context.REQUEST\n
redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n
, \'view\'\n
, \'portal_status_message=Transit+must+be+in+source.\'\n
)\n
return request.RESPONSE.redirect( redirect_url )\n
\n
reference_date = DateTime()\n reference_date = DateTime()\n
container_list = []\n container_list = []\n
listbox = []\n listbox = []\n
......
626 627
\ 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