Hello,
I need to trigger javascript from backend form.
like, if i have a button in my form view and i click on it then it trigger the javascript.
my_form.xml
<form name="view_form">
<group>
<field name="field1"/>
<button type="object" name="check_connection" string="Test Connection" class="oe_link btn-link"/>
</group>
</form>