parent
786419565a
commit
4fdb70d12a
|
@ -132,8 +132,7 @@ class mail_group(osv.Model):
|
||||||
params = {
|
params = {
|
||||||
'search_view_id': search_ref and search_ref[1] or False,
|
'search_view_id': search_ref and search_ref[1] or False,
|
||||||
'domain': [('model','=','mail.group'),('res_id','=',mail_group_id)],
|
'domain': [('model','=','mail.group'),('res_id','=',mail_group_id)],
|
||||||
'res_model': 'mail.group',
|
'res_model': 'mail.message',
|
||||||
'res_id': mail_group_id,
|
|
||||||
'thread_level': 2
|
'thread_level': 2
|
||||||
}
|
}
|
||||||
cobj = self.pool.get('ir.actions.client')
|
cobj = self.pool.get('ir.actions.client')
|
||||||
|
|
|
@ -109,6 +109,13 @@ class mail_message(osv.Model):
|
||||||
'body': fields.html('Content'),
|
'body': fields.html('Content'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def _needaction_domain_get(self, cr, uid, context={}):
|
||||||
|
if self._needaction:
|
||||||
|
partner_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).partner_id.id
|
||||||
|
return [('notification_ids.partner_id','=',partner_id),('notification_ids.read','=',False)]
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
def _get_default_author(self, cr, uid, context={}):
|
def _get_default_author(self, cr, uid, context={}):
|
||||||
return self.pool.get('res.users').browse(cr, uid, uid, context=context).partner_id.id
|
return self.pool.get('res.users').browse(cr, uid, uid, context=context).partner_id.id
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue