You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
962 B

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="event_management_form_view_mail" model="ir.ui.view">
<field name="name">event_management_form_view_mail.form</field>
<field name="model">event.management</field>
<field name="inherit_id" ref="event_management.event_management_form_view"/>
<field name="arch" type="xml">
<header position="inside">
<button name="send_confirmation_mail" string="Send Mail" type="object" class="oe_highlight" attrs="{'invisible': ['|', ('sent','=',True), ('state', 'not in', ['confirm'])]}"/>
<button name="send_confirmation_mail" string="Send Mail" type="object" attrs="{'invisible': ['|', ('sent','=',False), ('state', 'not in', ['confirm'])]}"/>
</header>
<field name="partner_id" position="after">
<field name="sent" invisible="1"/>
</field>
</field>
</record>
</odoo>