Commit 82f30d99 authored by Aurel's avatar Aurel

fix form order and remove uneeded fields

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14602 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2cf7415
...@@ -118,10 +118,6 @@ def convertCheckReferenceToInt(check_reference):\n ...@@ -118,10 +118,6 @@ def convertCheckReferenceToInt(check_reference):\n
# the contents must be preserved in the form.\n # the contents must be preserved in the form.\n
if listbox in (None,()) or (previous_resource not in(\'\',None) and previous_resource!=resource):\n if listbox in (None,()) or (previous_resource not in(\'\',None) and previous_resource!=resource):\n
listbox = []\n listbox = []\n
for i in range(0,10):\n
#listbox.append({\'quantity\':1,\'uid\':\'new_%03i\' % i})\n
listbox.append({\'quantity\':1})\n
\n
else:\n else:\n
for line in listbox:\n for line in listbox:\n
destination_payment_reference = line.get(\'destination_payment_reference\',None)\n destination_payment_reference = line.get(\'destination_payment_reference\',None)\n
...@@ -186,6 +182,9 @@ else:\n ...@@ -186,6 +182,9 @@ else:\n
generate_error(line,\'reference_range_min\',message)\n generate_error(line,\'reference_range_min\',message)\n
generate_error(line,\'reference_range_max\',message)\n generate_error(line,\'reference_range_max\',message)\n
\n \n
for i in xrange(len(listbox), 10):\n
listbox.append({\'quantity\':1})\n
\n
if batch_mode:\n if batch_mode:\n
return error_value\n return error_value\n
else:\n else:\n
...@@ -275,8 +274,6 @@ else:\n ...@@ -275,8 +274,6 @@ else:\n
<string>convertTravelerCheckReferenceToInt</string> <string>convertTravelerCheckReferenceToInt</string>
<string>convertCheckReferenceToInt</string> <string>convertCheckReferenceToInt</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>range</string>
<string>i</string>
<string>line</string> <string>line</string>
<string>destination_payment_reference</string> <string>destination_payment_reference</string>
<string>reference_range_min</string> <string>reference_range_min</string>
...@@ -301,6 +298,8 @@ else:\n ...@@ -301,6 +298,8 @@ else:\n
<string>check_amount_value</string> <string>check_amount_value</string>
<string>check_quantity</string> <string>check_quantity</string>
<string>same_type</string> <string>same_type</string>
<string>xrange</string>
<string>i</string>
<string>_apply_</string> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
<list> <list>
<string>listbox_source_logical_path</string> <string>listbox_source_logical_path</string>
<string>listbox_start_date</string> <string>listbox_start_date</string>
<string>listbox_source_total_asset_price</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -65,9 +65,12 @@ ...@@ -65,9 +65,12 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>cash_detail_dict = {\'line_portal_type\' : \'Cash Delivery Line\'\n <value> <string>#cash_status = [\'valid\', \'new_emitted\']\n
cash_status = [\'valid\']\n
\n
cash_detail_dict = {\'line_portal_type\' : \'Cash Delivery Line\'\n
, \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n , \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n
, \'cash_status_list\' : [\'valid\', \'new_emitted\']\n , \'cash_status_list\' : cash_status\n
, \'emission_letter_list\' : context.Baobab_getUserEmissionLetterList()\n , \'emission_letter_list\' : context.Baobab_getUserEmissionLetterList()\n
, \'variation_list\' : context.Baobab_getResourceVintageList(coin=1, banknote=1)\n , \'variation_list\' : context.Baobab_getResourceVintageList(coin=1, banknote=1)\n
, \'currency_cash_portal_type\' : None\n , \'currency_cash_portal_type\' : None\n
...@@ -126,6 +129,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -126,6 +129,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>cash_status</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
......
...@@ -84,7 +84,9 @@ ...@@ -84,7 +84,9 @@
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <value>
<list/> <list>
<string>listbox_start_date</string>
</list>
</value> </value>
</item> </item>
</dictionary> </dictionary>
......
252 254
\ 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