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.
 
 
 
 
 

50 lines
2.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="send_mass_mailing_view" model="ir.ui.view">
<field name="name">SendGrid Mass MAil</field>
<field name="model">mailing.mailing</field>
<field name="inherit_id"
ref="mass_mailing.view_mail_mass_mailing_form"/>
<field name="arch" type="xml">
<xpath expr="/form/header" position="inside">
<button name="action_send_grid" type="object"
attrs="{'invisible': [('state', 'in', ('in_queue', 'done'))]}"
class="oe_highlight"
string="SendGrid"
confirm="This will send the email to all recipients. Do you still want to proceed ?"/>
</xpath>
<xpath expr="/form/sheet/notebook/page[@name='mail_body']"
position="after">
<page string="SendGrid Email" name="send_grid">
<group>
<field name="email_temp"/>
<field name="sender_id"/>
</group>
<group>
<field name="to_email_partner_check" invisible="1"/>
<field name="to_email_lead_check" invisible="1"/>
<field name="to_email_contact_check" invisible="1"/>
<field name="to_email_applicant_check" invisible="1"/>
<field name="to_email_partner_ids"
widget="many2many_tags"
attrs="{'invisible': [('to_email_partner_check', '=',False)]}"/>
<field name="to_email_lead"
widget="many2many_tags"
attrs="{'invisible': [('to_email_lead_check', '=',False)]}"/>
<field name="to_email_contact"
widget="many2many_tags"
attrs="{'invisible': [('to_email_contact_check', '=',False)]}"/>
<field name="to_email_applicant"
widget="many2many_tags"
attrs="{'invisible': [('to_email_applicant_check', '=',False)]}"/>
<field name="email_finder" invisible="1"/>
<field name="sent_count" invisible="1"/>
<field name="temp_check" invisible="1"/>
</group>
</page>
</xpath>
</field>
</record>
</data>
</odoo>