diff --git a/CHANGELOG b/CHANGELOG
index c8289282c1..30080e18a7 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,5 @@
+* Improve rec_name of carrier
+
Version 2.2.0 - 2011-10-24
* Bug fixes (see mercurial logs for details)
diff --git a/carrier.py b/carrier.py
index 8bdd87772d..12743153d9 100644
--- a/carrier.py
+++ b/carrier.py
@@ -24,6 +24,15 @@ class Carrier(ModelSQL, ModelView):
def default_carrier_cost_method(self):
return 'product'
+ def get_rec_name(self, ids, name):
+ if not ids:
+ return {}
+ names = {}
+ for carrier in self.browse(ids):
+ names[carrier.id] = '%s - %s' % (carrier.party.rec_name,
+ carrier.carrier_product.rec_name)
+ return names
+
def copy(self, ids, default=None):
party_obj = Pool().get('party.party')
diff --git a/carrier.xml b/carrier.xml
index 3c99ac8d0a..007dcdad2d 100644
--- a/carrier.xml
+++ b/carrier.xml
@@ -75,6 +75,11 @@ this repository contains the full copyright notices and license terms. -->
position="replace_attributes">
+
+
+
+
]]>