Skip to Content
Menu
This question has been flagged
3087 Views

How to trigger "onclick" event while clicking on mobile/phone number in Odoo 10.

I have added mobile number and phone number in Odoo Contacts, I have to trigger a javascript alert when user clicks on mobile number or phone number. How can i achieve it?


    <record id="res_partner_base_config_view" model="ir.ui.view">

<field name="name">res_partner</field>

<field name="model">res.partner</field>

<field name="inherit_id" ref="base.view_partner_form"/>

<field name="arch" type="xml">

<field name="phone"/>   // Here in need to trigger jaavascript on click

<field name="mobile"/> // Here in need to trigger jaavascript on click

</field>

</field>

</record>





Avatar
Discard
Related Posts Replies Views Activity
2
Sep 18
4782
1
Apr 18
2471
0
Sep 17
2433
1
Mar 19
3441
0
Aug 18
1570