summaryrefslogtreecommitdiff
path: root/addons/project_long_term/project_long_term.py
diff options
context:
space:
mode:
authorfp <fp@fp-laptop>2010-10-16 00:01:00 +0200
committerfp <fp@fp-laptop>2010-10-16 00:01:00 +0200
commitdb6ee299b9bda8561074d6b70f4327b3341ec96d (patch)
tree07e850bf8217857b597ea9133848ceb91537dc5d /addons/project_long_term/project_long_term.py
parent475a9c625d383de29162203ff373f25fc54d57a4 (diff)
fix
bzr revid: fp@fp-laptop-20101015220100-h9a9m5zkfnyfpx9e
Diffstat (limited to 'addons/project_long_term/project_long_term.py')
-rw-r--r--addons/project_long_term/project_long_term.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py
index cfe4ff4f283..faea0916906 100644
--- a/addons/project_long_term/project_long_term.py
+++ b/addons/project_long_term/project_long_term.py
@@ -399,9 +399,7 @@ class project_resource_allocation(osv.osv):
def get_name(self, cr, uid, ids, field_name, arg, context=None):
res = {}
for allocation in self.browse(cr, uid, ids, context=context):
- name = allocation.resource_id.name
- if allocation.user_id:
- name = '%s' %(allocation.user_id.name)
+ name = allocation.phase_id.name
name += ' (%s%%)' %(allocation.useability)
res[allocation.id] = name
return res