[IMP] mail: default state for incoming message sis r`received`

bzr revid: odo@openerp.com-20110907151522-peelc8xuxa74necb
This commit is contained in:
Olivier Dony 2011-09-07 17:15:22 +02:00
parent 7c7c8a0348
commit 4a91f2bd9e
2 changed files with 3 additions and 2 deletions

View File

@ -179,7 +179,7 @@ class mail_message(osv.osv):
}
_defaults = {
'state': 'outgoing',
'state': 'received',
}
def init(self, cr):

View File

@ -226,7 +226,8 @@ class mail_thread(osv.osv):
'date': time.strftime('%Y-%m-%d %H:%M:%S'),
'message_id': message_id,
'body_text': body_text or (hasattr(thread, 'description') and thread.description or False),
'attachment_ids': [(6, 0, to_attach)]
'attachment_ids': [(6, 0, to_attach)],
'state' : 'received',
}
if email_from: