| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo><data> |
| 3 | <record id="crm_lead_view_form" model="ir.ui.view"> |
| 4 | <field name="name">crm.lead.view.form.inherit.website.crm.livechat</field> |
| 5 | <field name="model">crm.lead</field> |
| 6 | <field name="inherit_id" ref="website_crm.crm_lead_view_form"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//button[@name='action_redirect_to_page_views']" position="after"> |
| 9 | <button name="action_redirect_to_livechat_sessions" type="object" class="oe_stat_button" icon="fa-comment" |
| 10 | invisible="visitor_sessions_count == 0" groups="im_livechat.im_livechat_group_user"> |
| 11 | <field name="visitor_sessions_count" widget="statinfo" string="Sessions"/> |
| 12 | </button> |
| 13 | </xpath> |
| 14 | </field> |
| 15 | </record> |
| 16 | </data></odoo> |