diff --git a/addons/account/account.py b/addons/account/account.py
index 625bcd1a6a8..375d1a046d2 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -686,6 +686,27 @@ class account_journal(osv.osv):
vals.update({'sequence_id' : self.create_sequence(cr, uid, vals, context)})
return super(account_journal, self).create(cr, uid, vals, context)
+ def name_get(self, cr, user, ids, context={}):
+ """
+ Returns a list of tupples containing id, name.
+ result format : {[(id, name), (id, name), ...]}
+
+ @param cr: A database cursor
+ @param user: ID of the user currently logged in
+ @param ids: list of ids for which name should be read
+ @param context: context arguments, like lang, time zone
+
+ @return: Returns a list of tupples containing id, name
+ """
+ result = self.browse(cr, user, ids, context)
+ res = []
+ for rs in result:
+ name = rs.name
+ if rs.currency:
+ name = "%s (%s)" % (rs.name, rs.currency.name)
+ res += [(rs.id, name)]
+ return res
+
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100):
if not args:
args = []
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index 7dd79c2d829..b72faa46d46 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -102,6 +102,7 @@
+
@@ -133,7 +134,7 @@
-
+
@@ -211,6 +212,7 @@
+
@@ -235,7 +237,7 @@
-
+
diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml
index 94b257775c1..9291567ca24 100644
--- a/addons/account_voucher/voucher_view.xml
+++ b/addons/account_voucher/voucher_view.xml
@@ -147,6 +147,17 @@
+
+
+ tree
+
+
+
+
+ form
+
+
+
-
-
+
wiki.groups.tree
wiki.groups
@@ -25,23 +24,25 @@
-
-
+
wiki.groups.form
wiki.groups
form
-
-
+
Wiki Groups
wiki.groups
@@ -84,8 +84,7 @@
tree
-
-
+
wiki.wiki.tree.childs
wiki.wiki
@@ -103,8 +102,7 @@
-
-
+
wiki.wiki.tree
wiki.wiki
@@ -112,27 +110,28 @@
+
-
+
-
-
+
wiki.wiki.form
wiki.wiki
form
-
-
+
wiki.wiki.search
wiki.wiki
search
-
+
-
+
+
-
+
-
+
-
-
+
Wiki Pages
wiki.wiki
@@ -192,8 +194,7 @@
id="menu_action_wiki_wiki" name="Wiki Pages"
action="action_wiki" />
-
-
+
Pages Waiting Review
wiki.wiki
@@ -205,8 +206,7 @@
-
-
+
wiki.wiki.history.tree
wiki.wiki.history
@@ -221,8 +221,7 @@
-
-
+
wiki.wiki.history.form
wiki.wiki.history
@@ -238,8 +237,7 @@
-
-
+
All Page Histories
wiki.wiki.history