changed im.message  to im_chat.message

replaced

<field name="model">im.message</field>
   with
<field name="model">im_chat.message</field>
   in line 6