Commit 37619560 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2008-09-09 mame

* add form_id as a parameter in the script so that dialog always returns to the previous page

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23517 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ac3f6f4
...@@ -100,7 +100,7 @@ for line in line_list:\n ...@@ -100,7 +100,7 @@ for line in line_list:\n
line.setDestinationTotalAssetPrice(\n line.setDestinationTotalAssetPrice(\n
round(exchange_ratio*(line.getQuantity())),precision)\n round(exchange_ratio*(line.getQuantity())),precision)\n
\n \n
form_id=\'PurchaseInvoiceTransaction_viewAccounting\'\n \n
msg = context.Base_translateString(\'Amount converted.\')\n msg = context.Base_translateString(\'Amount converted.\')\n
\n \n
# return to the feature module\n # return to the feature module\n
...@@ -122,7 +122,7 @@ return context.Base_redirect(form_id,\n ...@@ -122,7 +122,7 @@ return context.Base_redirect(form_id,\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>form_id=\'view\'</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -142,12 +142,13 @@ return context.Base_redirect(form_id,\n ...@@ -142,12 +142,13 @@ return context.Base_redirect(form_id,\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>form_id</string>
<string>Products.ERP5.Document.Document</string> <string>Products.ERP5.Document.Document</string>
<string>ConversionError</string> <string>ConversionError</string>
<string>_getattr_</string> <string>_getattr_</string>
...@@ -162,7 +163,6 @@ return context.Base_redirect(form_id,\n ...@@ -162,7 +163,6 @@ return context.Base_redirect(form_id,\n
<string>currency</string> <string>currency</string>
<string>exchange_ratio</string> <string>exchange_ratio</string>
<string>round</string> <string>round</string>
<string>form_id</string>
<string>msg</string> <string>msg</string>
<string>dict</string> <string>dict</string>
</tuple> </tuple>
...@@ -176,7 +176,9 @@ return context.Base_redirect(form_id,\n ...@@ -176,7 +176,9 @@ return context.Base_redirect(form_id,\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<string>view</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -100,7 +100,7 @@ for line in line_list:\n ...@@ -100,7 +100,7 @@ for line in line_list:\n
line.setSourceTotalAssetPrice(\n line.setSourceTotalAssetPrice(\n
round(exchange_ratio*(line.getQuantity())),precision)\n round(exchange_ratio*(line.getQuantity())),precision)\n
\n \n
form_id=\'PurchaseInvoiceTransaction_viewAccounting\'\n \n
msg = context.Base_translateString(\'Amount converted.\')\n msg = context.Base_translateString(\'Amount converted.\')\n
\n \n
# return to the feature module\n # return to the feature module\n
...@@ -122,7 +122,7 @@ return context.Base_redirect(form_id,\n ...@@ -122,7 +122,7 @@ return context.Base_redirect(form_id,\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>form_id=\'view\'</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -142,12 +142,13 @@ return context.Base_redirect(form_id,\n ...@@ -142,12 +142,13 @@ return context.Base_redirect(form_id,\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>form_id</string>
<string>Products.ERP5.Document.Document</string> <string>Products.ERP5.Document.Document</string>
<string>ConversionError</string> <string>ConversionError</string>
<string>_getattr_</string> <string>_getattr_</string>
...@@ -162,7 +163,6 @@ return context.Base_redirect(form_id,\n ...@@ -162,7 +163,6 @@ return context.Base_redirect(form_id,\n
<string>currency</string> <string>currency</string>
<string>exchange_ratio</string> <string>exchange_ratio</string>
<string>round</string> <string>round</string>
<string>form_id</string>
<string>msg</string> <string>msg</string>
<string>dict</string> <string>dict</string>
</tuple> </tuple>
...@@ -176,7 +176,9 @@ return context.Base_redirect(form_id,\n ...@@ -176,7 +176,9 @@ return context.Base_redirect(form_id,\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<string>view</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
765 766
\ 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