title: Make button on website , which runs python script in ODOO
body: <p>I've made a new module in odoo. It has the action button (check ip using ipwhois). Now i need to integrate this module in website. It is easy to show fields on webpage, but i don't know how make button and call the function. The button is shown on webpage, but function is not callable. </p>
  
  <p>As i understand: clicking on button must call python function, reload page and write a new value in field "result_check". </p>
  
  <pre><code>&lt;record id="sale_form_view" model="ir.ui.view"&gt;
    &lt;field name="name"&gt;sale.form&lt;/field&gt;
    &lt;field name="model"&gt;product.template&lt;/field&gt;
    &lt;field name="inherit_id" ref="website_sale.product_template_form_view"/&gt;
    &lt;field name="arch" type="xml"&gt;
      &lt;field name="categ_id" position="after"&gt;
        &lt;button name="make_request" type="object" string="Make check" /&gt;
        &lt;field name="result_check" /&gt;
      &lt;/field&gt;
    &lt;/field&gt;
  &lt;/record&gt;
  
  &lt;templateid="add_fields_product"inherit_id="website_sale.product"&gt;
  &lt;xpathexpr="//div[@id='product_details']"position="before"&gt; 
  &lt;div&gt;
     &lt;a role="button" href="#"&gt;&lt;span&gt;Make check&lt;/span&gt;&lt;/a&gt; 
     &lt;p itemprop="name" t-field="product.result_check"&gt;Result&lt;/p&gt; 
  &lt;/div&gt; 
  &lt;/xpath&gt;
  &lt;/template&gt;
  </code></pre>