Commit 0fde78f5 authored by Jérome Perrin's avatar Jérome Perrin

rename script, and translate delivery portal type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ac59174e
......@@ -275,7 +275,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/Item_getFastInputPortalTypeList</string> </value>
<value> <string>here/Item_getDeliveryPortalTypeItemList</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -9,22 +9,10 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
......@@ -65,13 +53,14 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>portal_type_list = [\'Internal Packing List\' , \n
<value> <string>from Products.ERP5Type.Message import translateString\n
portal_type_list = [\'Internal Packing List\' , \n
\'Sale Order\',\n
\'Sale Packing List\',\n
\'Purchase Order\',\n
\'Purchase Packing List\']\n
\n
return [(x,x) for x in portal_type_list ]\n
return [(\'\', \'\')] + [(translateString(x), x) for x in portal_type_list ]\n
</string> </value>
</item>
<item>
......@@ -80,12 +69,6 @@ return [(x,x) for x in portal_type_list ]\n
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
......@@ -114,6 +97,8 @@ return [(x,x) for x in portal_type_list ]\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>portal_type_list</string>
<string>append</string>
<string>$append0</string>
......@@ -135,7 +120,7 @@ return [(x,x) for x in portal_type_list ]\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Item_getFastInputPortalTypeList</string> </value>
<value> <string>Item_getDeliveryPortalTypeItemList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -9,22 +9,10 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
......@@ -74,18 +62,6 @@
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
......
......@@ -275,7 +275,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/Item_getFastInputPortalTypeList</string> </value>
<value> <string>here/Item_getDeliveryPortalTypeItemList</string> </value>
</item>
</dictionary>
</pickle>
......
145
\ No newline at end of file
148
\ 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