[FIX] mail: set the parent_id to the first message of type email
authorDenis Ledoux <dle@odoo.com>
Thu, 16 Oct 2014 12:07:38 +0000 (14:07 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 16 Oct 2014 12:07:38 +0000 (14:07 +0200)
commit1d57a09112e4def7c7ed9cc010f9d683c18ac1ea
tree35e4dae1d2de51f38d732643e8fe948d32d68300
parent9c0e8f10e0268c26cea1b991b0156f425a3c3e1a
[FIX] mail: set the parent_id to the first message of type email

And fallback of any type if there is none of type email

This fix allow the communication between two mail thread from two different Odoo servers having message creation subtypes, like project issue or crm lead
addons/mail/mail_thread.py