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.
 
 
 
 
 

34 lines
1.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- This is used to add smart buttons in the partner form-->
<record id="res_partner_view_form" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit.partner.emails.history</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button class="oe_stat_button" type="object"
invisible="is_show_sms == False"
name="action_view_partner_sms" icon="fa-comments-o">
<field name="sms_count" string="SMS" widget="statinfo"/>
</button>
<button class="oe_stat_button" type="object"
invisible="is_show_emails == False"
name="sent_email_history" icon="fa-mail-forward">
<field name="send_email_count" string="Sent Emails"
widget="statinfo"/>
</button>
<button class="oe_stat_button" type="object"
invisible="is_show_emails == False"
name="received_email_history" icon="fa-mail-reply">
<field name="received_email_count" string="Received Emails"
widget="statinfo"/>
</button>
</xpath>
<xpath expr="//field[@name='vat']" position="after">
<field name="is_show_sms" invisible="1"/>
<field name="is_show_emails" invisible="1"/>
</xpath>
</field>
</record>
</odoo>