[IMP] mail: mailgaitway improvment based on read/unread msg
bzr revid: psi@tinyerp.com-20120420104406-wva0aslc00iy22ya
This commit is contained in:
@@ -522,6 +522,10 @@ class mail_message(osv.osv):
|
||||
:param browse_record message: the message that was just sent
|
||||
:return: True
|
||||
"""
|
||||
if context is None:
|
||||
context = {}
|
||||
if context.get('active_ids', False):
|
||||
self.write(cr, uid, context['active_ids'], {'message_state':'read'}, context=context)
|
||||
if message.auto_delete:
|
||||
self.pool.get('ir.attachment').unlink(cr, uid,
|
||||
[x.id for x in message.attachment_ids \
|
||||
|
||||
@@ -168,9 +168,6 @@
|
||||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Email Search">
|
||||
<!--filter icon="terp-camera_test" name="received" string="Received" domain="[('state','=','received')]"/>
|
||||
<filter icon="terp-call-start" name="outgoing" string="Outgoing" domain="[('state','=','outgoing')]"/>
|
||||
<filter icon="terp-check" name="sent" string="Sent" domain="[('state','=','sent')]"/-->
|
||||
<filter icon="terp-check" name="inbox" string="Inbox" domain="[('message_state','=','unread')]"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="terp-gtk-stop" name="exception" string="Failed" domain="[('state','=','exception')]"/>
|
||||
|
||||
Reference in New Issue
Block a user