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 ...@@ -74,29 +74,29 @@ portal = context.getPortalObject() \n
currency_module = getattr(portal, \'currency_module\', getattr(portal, \'currency\', None))\n currency_module = getattr(portal, \'currency_module\', getattr(portal, \'currency\', None))\n
\n \n
for currency in currency_module.objectValues() : \n for currency in currency_module.objectValues() : \n
# for currency, we intentionaly use id (EUR) not title (Euros).\n # for currency, we intentionaly use reference (EUR) not title (Euros).\n
result.append((currency.id, currency.getRelativeUrl()))\n result.append((currency.getReference(), currency.getRelativeUrl()))\n
return result\n return result\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5pAQAAAGMBAAAACgAA <value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5pAQAAAGMBAAAACgAA
AA0AAABDAAAAc6kAAABnAAB9AQB8AABvEwABZAEAZAEAZwIAZwEAfQEAbgEAAXQCAHQDAGQCAIMC AA0AAABDAAAAc6wAAABnAAB9AQB8AABvEwABZAEAZAEAZwIAZwEAfQEAbgEAAXQCAHQDAGQCAIMC
AIMAAH0EAHQFAHwEAGQDAHQFAHwEAGQEAHQGAIMDAIMDAH0HAHhOAHQIAHQCAHwHAGQFAIMCAIMA AIMAAH0EAHQFAHwEAGQDAHQFAHwEAGQEAHQGAIMDAIMDAH0HAHhRAHQIAHQCAHwHAGQFAIMCAIMA
AIMBAERdNAB9CQB0AgB8AQBkBgCDAgB0AgB8CQBkBwCDAgB0AgB8CQBkCACDAgCDAABmAgCDAQAB AIMBAERd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AA cwYAAABwb3J0YWxzBwAAAGdldGF0dHJzBAAAAE5vbmVzDwAAAGN1cnJlbmN5X21vZHVsZXMJAAAA
AGN1cnJlbmN5KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcyIAAABDdXJyZW5jeU1vZHVs X2dldGl0ZXJfcwgAAABjdXJyZW5jeSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMiAAAA
ZV9nZXRDdXJyZW5jeUl0ZW1MaXN0AQAAAHMQAAAABgEHARMCEgEeAhkACQIvASgBAAAAcyIAAABD Q3VycmVuY3lNb2R1bGVfZ2V0Q3VycmVuY3lJdGVtTGlzdAEAAABzEAAAAAYBBwETAhIBHgIZAAkC
dXJyZW5jeU1vZHVsZV9nZXRDdXJyZW5jeUl0ZW1MaXN0KAEAAABzIgAAAEN1cnJlbmN5TW9kdWxl MgEoAQAAAHMiAAAAQ3VycmVuY3lNb2R1bGVfZ2V0Q3VycmVuY3lJdGVtTGlzdCgBAAAAcyIAAABD
X2dldEN1cnJlbmN5SXRlbUxpc3QoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxt dXJyZW5jeU1vZHVsZV9nZXRDdXJyZW5jeUl0ZW1MaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQ
b2R1bGU+AQAAAHMAAAAA</string> </value> eXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
......
...@@ -337,6 +337,10 @@ ...@@ -337,6 +337,10 @@
<string>id</string> <string>id</string>
<string>ID</string> <string>ID</string>
</tuple> </tuple>
<tuple>
<string>reference</string>
<string>Currency Code</string>
</tuple>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>Title</string> <string>Title</string>
...@@ -454,7 +458,20 @@ ...@@ -454,7 +458,20 @@
<item> <item>
<key> <string>search_columns</string> </key> <key> <string>search_columns</string> </key>
<value> <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> </value>
</item> </item>
<item> <item>
...@@ -479,7 +496,20 @@ ...@@ -479,7 +496,20 @@
<item> <item>
<key> <string>sort_columns</string> </key> <key> <string>sort_columns</string> </key>
<value> <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> </value>
</item> </item>
<item> <item>
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>my_id</string> <string>my_reference</string>
<string>my_title</string> <string>my_title</string>
</list> </list>
</value> </value>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_id</string> </value> <value> <string>my_reference</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>ID</string> </value> <value> <string>Currency Code</string> </value>
</item> </item>
<item> <item>
<key> <string>truncate</string> </key> <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