summaryrefslogtreecommitdiff
path: root/sh_helpdesk/wizard/mail_compose_view.xml
blob: 6345618da9888a6b8626ba4b10f00a794e455769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="sh_mail_compose_view" model="ir.ui.view">
        <field name="name">mail.compose.message</field>
        <field name="model">mail.compose.message</field>
        <field name="inherit_id" ref="mail.email_compose_message_wizard_form" />
        <field name="arch" type="xml">
            <field name="subject" position="after">
            	<field name="is_wp" invisible="1"/>
                <field name="sh_quick_reply_template_id" attrs="{'invisible': [('model', '!=', 'helpdesk.ticket')]}" />
                <field name="body_str" invisible="1" />
            </field>
            <xpath expr="//button[@name='action_send_mail']" position="after">
                <button string="Send By Whatsapp" name="action_send_wp" type="object" class="btn-primary o_mail_send" attrs="{'invisible':[('is_wp','=',False)]}" groups="sh_helpdesk.helpdesk_group_whatsapp" />
            </xpath>
        </field>
    </record>
</odoo>