Files
enterprise-addons/marketing_automation_sms/views/mailing_mailing_views.xml
T

72 lines
3.9 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="mailing_mailing_view_form_marketing_automation" model="ir.ui.view">
<field name="name">mailing.mailing.view.form.marketing.activity.inherit.sms</field>
<field name="model">mailing.mailing</field>
<field name="inherit_id" ref="marketing_automation.mailing_mailing_view_form_marketing_automation"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='mail_body']" position="attributes">
<attribute name="invisible">mailing_type != 'mail'</attribute>
</xpath>
<xpath expr="//field[@name='subject']" position="attributes">
<attribute name="invisible">mailing_type == 'sms'</attribute>
<attribute name="required">mailing_type == 'mail'</attribute>
</xpath>
<xpath expr="//field[@name='sms_subject']" position="attributes">
<attribute name="invisible">mailing_type == 'mail'</attribute>
<attribute name="required">mailing_type == 'sms'</attribute>
<attribute name="readonly">0</attribute>
</xpath>
<xpath expr="//field[@name='body_plaintext']" position="attributes">
<attribute name="readonly">mailing_type == 'mail'</attribute>
<attribute name="required">mailing_type == 'sms'</attribute>
</xpath>
<xpath expr="//field[@name='sms_allow_unsubscribe']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
</field>
</record>
<record id="mailing_mailing_view_tree_marketing_automation_sms" 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="marketing_automation.mailing_mailing_view_tree_marketing_automation"/>
<field name="mode">primary</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='opened_ratio']" position="replace"/>
<xpath expr="//field[@name='replied_ratio']" position="replace"/>
<xpath expr="//field[@name='subject']" position="attributes">
<attribute name="column_invisible">True</attribute>
</xpath>
<xpath expr="//field[@name='subject']" position="after">
<field name="sms_subject"/>
</xpath>
</field>
</record>
<record id="mass_mailing_sms.mailing_mailing_action_sms" model="ir.actions.act_window">
<field name="domain">['&amp;', ('mailing_type', '=', 'sms'), ('use_in_marketing_automation', '=', False)]</field>
</record>
<record id="mail_mass_mailing_action_marketing_automation_sms" model="ir.actions.act_window">
<field name="name">Marketing Automation SMS</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_sms_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_sms"/>
<field name="view_id" ref="mailing_mailing_view_tree_marketing_automation_sms"/>
</record>
<record id="mail_mass_mailing_action_marketing_automation_sms_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_sms"/>
<field name="view_id" ref="marketing_automation.mailing_mailing_view_form_marketing_automation"/>
</record>
</odoo>