<buttonstring="Create new record"name="create_record"type="object"class="oe_highlight"attrs="{'invisible':['|',('model','=',False),('res_id','!=',False)]}"special="quick_create"field="res_id"use_for_mail_move_message="True"/>
<buttonstring="Create new record"name="create_record"type="object"class="oe_highlight"attrs="{'invisible':['|',('model','=',False)]}"special="quick_create"field="res_id"use_for_mail_move_message="True"/>
<buttonname="read_close"string="Mark as read and Close"type="object"class="oe_highlight"attrs="{'invisible':[('message_to_read','=',False)]}"/>
<separatorstring="Message"/>
<div>
<fieldname="message_id"invisible="1"/>
<fieldname="message_body"/>
</div>
<footer>
<buttonname="delete"string="Delete message"type="object"class="oe_highlight"confirm="Do you really want to delete this message?"attrs="{'invisible':[('uid','!=',1)]}"/>
<buttonname="read_close"string="Mark as read and Close"type="object"class="oe_highlight"/> or
<buttonname="delete"string="Delete message"type="object"class="oe_highlight oe_right"confirm="Do you really want to delete this message?"attrs="{'invisible':[('uid','!=',1)]}"/>