127 lines
7.1 KiB
XML
127 lines
7.1 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<odoo>
|
|
|
|
<record id="mailing_mailing_view_tree_marketing_automation" model="ir.ui.view" >
|
|
<field name="name">mailing.mailing.view.list.marketing.automation</field>
|
|
<field name="model">mailing.mailing</field>
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_tree"/>
|
|
<field name="mode">primary</field>
|
|
<field name="priority">20</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='subject']" position="after">
|
|
<field name="marketing_activity_ids" string="Activities" widget="many2many_tags"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='state']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mailing_mailing_view_form_marketing_automation" model="ir.ui.view" >
|
|
<field name="name">mailing.mailing.view.form.marketing.automation</field>
|
|
<field name="model">mailing.mailing</field>
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_form"/>
|
|
<field name="mode">primary</field>
|
|
<field name="priority">20</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header/button[@name='action_duplicate'][hasclass('btn-secondary')]" position="replace"></xpath>
|
|
<xpath expr="//div[hasclass('o_mass_mailing_alert_message')]" position="attributes">
|
|
<attribute name="invisible">use_in_marketing_automation and sent == 0 and canceled == 0 and scheduled == 0 and failed == 0 and not warning_message</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('o_mails_sent')]" position="attributes">
|
|
<attribute name="invisible">sent == 0 and use_in_marketing_automation</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='subject']" position="attributes">
|
|
<attribute name="readonly"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='preview']" position="attributes">
|
|
<attribute name="invisible">mailing_type != 'mail'</attribute>
|
|
<attribute name="readonly">mailing_type != 'mail'</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@name='mail_body']" position="replace">
|
|
<page string="Mail Body" name="mail_body">
|
|
<field name="body_arch" class="oe_edit_only" widget="mass_mailing_html" options="{
|
|
'inline_field': 'body_html',
|
|
'dynamic_placeholder': true,
|
|
'dynamic_placeholder_model_reference_field': 'mailing_model_real',
|
|
'filterTemplates': true,
|
|
}"/>
|
|
<field name="body_html" invisible="1" required="body_arch"/>
|
|
<field name="is_body_empty" invisible="1"/>
|
|
</page>
|
|
</xpath>
|
|
<xpath expr="//field[@name='state']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_launch']" position="replace"/>
|
|
<xpath expr="//button[@name='action_schedule']" position="replace"/>
|
|
<field name="mailing_domain" position="replace"/>
|
|
<xpath expr="//label[@for='mailing_model_id']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[@name='mailing_model_id_container']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('o_mass_mailing_contact_list_ids')]" position="replace"/>
|
|
<xpath expr="//field[@name='source_id']" position="after">
|
|
<field name="marketing_activity_ids" string="Activities" widget="many2many_tags" readonly="1"/>
|
|
</xpath>
|
|
<xpath expr="//page[@name='ab_testing']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='mail_server_id']" position="attributes">
|
|
<attribute name="readonly">0</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='use_exclusion_list']" position="attributes">
|
|
<attribute name="invisible">(use_in_marketing_automation or not mail_server_id) and use_exclusion_list</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='email_from']" position="attributes">
|
|
<attribute name="readonly" add="not use_in_marketing_automation" separator="and"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='reply_to']" position="attributes">
|
|
<attribute name="readonly" add="not use_in_marketing_automation" separator="and"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='attachment_ids']" position="attributes">
|
|
<attribute name="readonly" add="not use_in_marketing_automation" separator="and"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_retry_failed']" position="before">
|
|
<field name="use_in_marketing_automation" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_retry_failed']" position="attributes">
|
|
<attribute name="invisible" add="use_in_marketing_automation" separator=" or "/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="mass_mailing.mailing_mailing_action_mail" model="ir.actions.act_window">
|
|
<field name="domain">['&', ('mailing_type', '=', 'mail'), ('use_in_marketing_automation', '=', False)]</field>
|
|
</record>
|
|
|
|
<record id="mail_mass_mailing_action_marketing_automation" model="ir.actions.act_window">
|
|
<field name="name">Marketing Automation Mailings</field>
|
|
<field name="res_model">mailing.mailing</field>
|
|
<field name="view_mode">list,form,graph</field>
|
|
<field name="domain">[('use_in_marketing_automation', '=', True)]</field>
|
|
</record>
|
|
<record id="mail_mass_mailing_action_marketing_automation_tree" model="ir.actions.act_window.view">
|
|
<field name="sequence">1</field>
|
|
<field name="view_mode">list</field>
|
|
<field name="act_window_id" ref="mail_mass_mailing_action_marketing_automation"/>
|
|
<field name="view_id" ref="mailing_mailing_view_tree_marketing_automation"/>
|
|
</record>
|
|
<record id="mail_mass_mailing_action_marketing_automation_form" model="ir.actions.act_window.view">
|
|
<field name="sequence">2</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="act_window_id" ref="mail_mass_mailing_action_marketing_automation"/>
|
|
<field name="view_id" ref="mailing_mailing_view_form_marketing_automation"/>
|
|
</record>
|
|
|
|
<record id="mailing_mailing_action_view_form" model="ir.actions.act_window">
|
|
<field name="name">Marketing Automation Mailings</field>
|
|
<field name="res_model">mailing.mailing</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="marketing_automation.mailing_mailing_view_form_marketing_automation"/>
|
|
</record>
|
|
|
|
</odoo>
|