/openerp/addons/mail/mail_message.py
def check_access_rule
Эта штука не позволяет привязывать письмо с вложением, если ты не Супер Пользователь.
Комментируем код.
# Calculate remaining ids: if not void, raise an error
#other_ids = other_ids.difference(set(document_related_ids))
#if not other_ids:
# return
#raise orm.except_orm(_('Access Denied'),
# _('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: %s, Operation: %s)') % \
# (self._description, operation))
Еще если, очень хочется стирать сообщения, можно добавить в
openerp/addon-other/mail_organizer/static/src/xml/mail.xml
<template>
…
...
<t t-extend="mail.thread.message">
<t t-jquery=".oe_msg_icons span:first-child()" t-operation="after">
<span class="oe_msg_delete"><a title="Delete" class="oe_e">X</a></span>
</t>
</t>
</template>
]]>