[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:
parent
f56cc312e4
commit
379ab719ee
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue