Commit 912c1259 authored by Fabien Morin's avatar Fabien Morin

- Use getTitle in the tales of the listbox instead to have title =...

- Use getTitle in the tales of the listbox instead to have title = object.getTitle in asContext (useless)
- if price_currency have a short_title, use it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27996 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5d9a534
...@@ -101,7 +101,6 @@ for paysheet_line in paysheet_line_list:\n ...@@ -101,7 +101,6 @@ for paysheet_line in paysheet_line_list:\n
object_dict = {}\n object_dict = {}\n
if cartesian_product == [[]] or cartesian_product == []:\n if cartesian_product == [[]] or cartesian_product == []:\n
params = {\n params = {\n
\'title\':paysheet_line.getTitle(),\n
\'base\':paysheet_line.getTotalPrice(),\n \'base\':paysheet_line.getTotalPrice(),\n
\'base_contribution_list\':base_contribution_list,\n \'base_contribution_list\':base_contribution_list,\n
\'base_application_list\': base_application_list,\n \'base_application_list\': base_application_list,\n
......
...@@ -357,7 +357,7 @@ data_dict = {\n ...@@ -357,7 +357,7 @@ data_dict = {\n
\'start_date\': getOrderedDate(context.getStartDate()) or \'\',\n \'start_date\': getOrderedDate(context.getStartDate()) or \'\',\n
\'stop_date\': getOrderedDate(context.getStopDate()) or \'\',\n \'stop_date\': getOrderedDate(context.getStopDate()) or \'\',\n
\'creation_date\': getOrderedDate(context.getCreationDate()) or \'\',\n \'creation_date\': getOrderedDate(context.getCreationDate()) or \'\',\n
\'currency\': context.getPriceCurrencyReference() or \'\',\n \'currency\': context.getPriceCurrencyValue() is not None and context.getPriceCurrencyValue().getShortTitle() or context.getPriceCurrencyReference() or \'\',\n
\'payment_condition\': getPaymentConditionText(context),\n \'payment_condition\': getPaymentConditionText(context),\n
\'delivery_mode\': context.getDeliveryModeTitle() or \'\',\n \'delivery_mode\': context.getDeliveryModeTitle() or \'\',\n
\'incoterm\': context.getIncoterm() and context.getIncotermValue().getCodification() or \'\',\n \'incoterm\': context.getIncoterm() and context.getIncotermValue().getCodification() or \'\',\n
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>display_width</string> <string>display_width</string>
</list> </list>
</value> </value>
...@@ -55,6 +56,16 @@ ...@@ -55,6 +56,16 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -74,6 +85,10 @@ ...@@ -74,6 +85,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>display_width</string> </key> <key> <string>display_width</string> </key>
<value> <int>30</int> </value> <value> <int>30</int> </value>
...@@ -96,4 +111,20 @@ ...@@ -96,4 +111,20 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>cell/getTitle</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
491 492
\ 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