[IMP] project: display group with empty message

bzr revid: chm@openerp.com-20130205145101-h6jk9uw8av79aygp
This commit is contained in:
Christophe Matthieu 2013-02-05 15:51:01 +01:00
parent 3dd59aa69b
commit a58fb0df5c
2 changed files with 6 additions and 3 deletions

View File

@ -605,8 +605,7 @@ class task(base_stage, osv.osv):
search_domain = []
project_id = self._resolve_project_id_from_context(cr, uid, context=context)
if project_id:
search_domain += ['|', ('project_ids', '=', project_id)]
search_domain += [('id', 'in', ids)]
search_domain += [('project_ids', '=', project_id)]
stage_ids = stage_obj._search(cr, uid, search_domain, order=order, access_rights_uid=access_rights_uid, context=context)
result = stage_obj.name_get(cr, access_rights_uid, stage_ids, context=context)
# restore order of the search
@ -909,7 +908,7 @@ class task(base_stage, osv.osv):
alias_txt = "%s%s%s" % (alias_txt, (alias_nb and ", " or " "), email)
alias_nb += 1
if alias_txt:
help = "%s %s" % (help, _("<div>You can also create documents by sending an email to: <b>%s</b></div>" % alias_txt))
help = "%s %s" % (help, _("<div class='oe_view_nocontent_create_alias'>You can also create documents by sending an email to: <b>%s</b></div>" % alias_txt))
return help
# ----------------------------------------

View File

@ -1,3 +1,7 @@
.oe_list .oe_view_nocontent_create_alias {
padding-left: 78px;
}
.oe_kanban_project {
width: 220px;
min-height: 160px;