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 @@ ...@@ -13,6 +13,7 @@
<string>columns</string> <string>columns</string>
<string>editable_columns</string> <string>editable_columns</string>
<string>hidden</string> <string>hidden</string>
<string>sort</string>
<string>title</string> <string>title</string>
<string>url_columns</string> <string>url_columns</string>
</list> </list>
...@@ -143,6 +144,17 @@ ...@@ -143,6 +144,17 @@
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>sort</string> </key>
<value>
<list>
<tuple>
<string>int_index</string>
<string>ASC</string>
</tuple>
</list>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>precision</string>
<string>title</string> <string>title</string>
</list> </list>
</value> </value>
...@@ -79,6 +80,10 @@ ...@@ -79,6 +80,10 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>precision</string> </key>
<value> <int>10</int> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
......
...@@ -79,6 +79,10 @@ if cell_range_key_list != [[None, None]] :\n ...@@ -79,6 +79,10 @@ if cell_range_key_list != [[None, None]] :\n
c.setCriterion(\'stop_date\', min=context.getStartDate(), max=context.getStopDate())\n c.setCriterion(\'stop_date\', min=context.getStartDate(), max=context.getStopDate())\n
if c.getBasePrice() is None and context.getBasePrice() is not None:\n if c.getBasePrice() is None and context.getBasePrice() is not None:\n
c.setBasePrice(context.getBasePrice())\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> </string> </value>
</item> </item>
<item> <item>
...@@ -138,6 +142,7 @@ if cell_range_key_list != [[None, None]] :\n ...@@ -138,6 +142,7 @@ if cell_range_key_list != [[None, None]] :\n
<string>category_list</string> <string>category_list</string>
<string>_apply_</string> <string>_apply_</string>
<string>c</string> <string>c</string>
<string>currency_exchange_type_value_list</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
833 834
\ 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