[IMP] mail: default state for incoming message sis r`received`
bzr revid: odo@openerp.com-20110907151522-peelc8xuxa74necb
This commit is contained in:
parent
7c7c8a0348
commit
4a91f2bd9e
|
@ -179,7 +179,7 @@ class mail_message(osv.osv):
|
|||
}
|
||||
|
||||
_defaults = {
|
||||
'state': 'outgoing',
|
||||
'state': 'received',
|
||||
}
|
||||
|
||||
def init(self, cr):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue