[ADD] Migration of crm module

Modifying set_message_last_post from api8.0 to write sql instead of orm to prevent some crm.lead write trigger from instantiating sale orders (while the sale order model has not yet been loaded).