Commit 8187b71e authored by Jérome Perrin's avatar Jérome Perrin

- set int_index on currency exchange cells, based on currency_exchange_type's int_indexs

- make a bigger precision on exchange rate field

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38310 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd22d6e9
......@@ -13,6 +13,7 @@
<string>columns</string>
<string>editable_columns</string>
<string>hidden</string>
<string>sort</string>
<string>title</string>
<string>url_columns</string>
</list>
......@@ -143,6 +144,17 @@
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value>
<list>
<tuple>
<string>int_index</string>
<string>ASC</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -10,6 +10,7 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>precision</string>
<string>title</string>
</list>
</value>
......@@ -79,6 +80,10 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>precision</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -79,6 +79,10 @@ if cell_range_key_list != [[None, None]] :\n
c.setCriterion(\'stop_date\', min=context.getStartDate(), max=context.getStopDate())\n
if c.getBasePrice() is None and context.getBasePrice() is not None:\n
c.setBasePrice(context.getBasePrice())\n
# set an int index for display\n
currency_exchange_type_value_list = c.getValueList(\'currency_exchange_type\')\n
if currency_exchange_type_value_list:\n
c.setIntIndex(currency_exchange_type_value_list[0].getIntIndex())\n
</string> </value>
</item>
<item>
......@@ -138,6 +142,7 @@ if cell_range_key_list != [[None, None]] :\n
<string>category_list</string>
<string>_apply_</string>
<string>c</string>
<string>currency_exchange_type_value_list</string>
</tuple>
</value>
</item>
......
833
\ No newline at end of file
834
\ 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