[IMP] crm: After Merged oppportunity, correct value of merge_description, and Email_cc[It means Text field value have filtered]

bzr revid: ron@tinyerp.com-20111130130614-s9e1a8v6hra0kmxr
This commit is contained in:
ron@tinyerp.com 2011-11-30 18:36:14 +05:30
parent f56cc312e4
commit 379ab719ee
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ class crm_lead(crm_case, osv.osv):
return res and res.id or False
def _concat_all(attr):
return ', '.join([getattr(opportunity, attr) or '' for opportunity in opportunities if hasattr(opportunity, attr)])
return ', '.join(filter(lambda x: x, [getattr(opportunity, attr) or '' for opportunity in opportunities if hasattr(opportunity, attr)]))
data = {}
for field_name in fields: