1
<?xml version="1.0" encoding="UTF-8"?>
4
<record id="view_message_form" model="ir.ui.view">
5
<field name="model">mail.message</field>
6
<field name="inherit_id" ref="mail.view_message_form"/>
7
<field name="arch" type="xml">
8
<sheet position="before">
9
<header attrs="{'invisible': [('model', '!=', 'fetchmail.inbox.invoice')]}">
10
<button string="Attach to existing invoice" type="object" name="fetchmail_inbox_attach_existing" class="oe_highlight" />
11
<button string="Create invoice" type="object" name="fetchmail_inbox_create" />