Commit 10cd5235 authored by Jérome Perrin's avatar Jérome Perrin

replace id by reference for Currency Code in the UI.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4825 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 909aca44
......@@ -74,29 +74,29 @@ portal = context.getPortalObject() \n
currency_module = getattr(portal, \'currency_module\', getattr(portal, \'currency\', None))\n
\n
for currency in currency_module.objectValues() : \n
# for currency, we intentionaly use id (EUR) not title (Euros).\n
result.append((currency.id, currency.getRelativeUrl()))\n
# for currency, we intentionaly use reference (EUR) not title (Euros).\n
result.append((currency.getReference(), currency.getRelativeUrl()))\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5pAQAAAGMBAAAACgAA
AA0AAABDAAAAc6kAAABnAAB9AQB8AABvEwABZAEAZAEAZwIAZwEAfQEAbgEAAXQCAHQDAGQCAIMC
AIMAAH0EAHQFAHwEAGQDAHQFAHwEAGQEAHQGAIMDAIMDAH0HAHhOAHQIAHQCAHwHAGQFAIMCAIMA
AIMBAERdNAB9CQB0AgB8AQBkBgCDAgB0AgB8CQBkBwCDAgB0AgB8CQBkCACDAgCDAABmAgCDAQAB
cWkAV3wBAFNkAABTKAkAAABOcwAAAABzDwAAAGdldFBvcnRhbE9iamVjdHMPAAAAY3VycmVuY3lf
bW9kdWxlcwgAAABjdXJyZW5jeXMMAAAAb2JqZWN0VmFsdWVzcwYAAABhcHBlbmRzAgAAAGlkcw4A
AABnZXRSZWxhdGl2ZVVybCgKAAAAcwYAAAByZXN1bHRzDQAAAGluY2x1ZGVfZW1wdHlzCQAAAF9n
ZXRhdHRyX3MHAAAAY29udGV4dHMGAAAAcG9ydGFscwcAAABnZXRhdHRycwQAAABOb25lcw8AAABj
dXJyZW5jeV9tb2R1bGVzCQAAAF9nZXRpdGVyX3MIAAAAY3VycmVuY3koCgAAAHMNAAA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Y3VycmVuY3lfbW9kdWxlcwkAAABfZ2V0aXRlcl9zCAAAAGN1cnJlbmN5KAoA
AABzDQAAAGluY2x1ZGVfZW1wdHlzBgAAAHJlc3VsdHMJAAAAX2dldGF0dHJfcwcAAABjb250ZXh0
cwYAAABwb3J0YWxzBwAAAGdldGF0dHJzBAAAAE5vbmVzDwAAAGN1cnJlbmN5X21vZHVsZXMJAAAA
X2dldGl0ZXJfcwgAAABjdXJyZW5jeSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMiAAAA
Q3VycmVuY3lNb2R1bGVfZ2V0Q3VycmVuY3lJdGVtTGlzdAEAAABzEAAAAAYBBwETAhIBHgIZAAkC
MgEoAQAAAHMiAAAAQ3VycmVuY3lNb2R1bGVfZ2V0Q3VycmVuY3lJdGVtTGlzdCgBAAAAcyIAAABD
dXJyZW5jeU1vZHVsZV9nZXRDdXJyZW5jeUl0ZW1MaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQ
eXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......
......@@ -337,6 +337,10 @@
<string>id</string>
<string>ID</string>
</tuple>
<tuple>
<string>reference</string>
<string>Currency Code</string>
</tuple>
<tuple>
<string>title</string>
<string>Title</string>
......@@ -454,7 +458,20 @@
<item>
<key> <string>search_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>id</string>
<string>ID</string>
</tuple>
<tuple>
<string>reference</string>
<string>Currency Code</string>
</tuple>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -479,7 +496,20 @@
<item>
<key> <string>sort_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>id</string>
<string>ID</string>
</tuple>
<tuple>
<string>reference</string>
<string>Currency Code</string>
</tuple>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
</list>
</value>
</item>
<item>
......
......@@ -100,7 +100,7 @@
<key> <string>left</string> </key>
<value>
<list>
<string>my_id</string>
<string>my_reference</string>
<string>my_title</string>
</list>
</value>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_id</string> </value>
<value> <string>my_reference</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -243,7 +243,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>ID</string> </value>
<value> <string>Currency Code</string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
......
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