in the below code i can able to submit form and can able to store data in database, but at the same time how to call method
please see the below code
==============template.xml===============
<template id="regis">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<form action="/website_form/" method="post" class="s_website_form form-horizontal container-fluid mt32" enctype="multipart/form-data" data-model_name="empdetails.regis" data-success_page="/christjobs/thankyou">
<div class="hff hff_textbox form-group" data-form-type="textbox" data-field-id="0">
<input type="text" name="reg_name" class="form-control" placeholder="NAME OF STUDENT AS PER 10 RECORD "/>
</div>
<button class="btn btn-primary btn-lg o_website_form_send">Register</button>
</form>
</div>
</div>
</t>
</template>
==============model.py===============================
class regis(models.Model):
_name = 'empdetails.regis'
reg_name = fields.Char(string="Name", required=True)
@api.multi
def otp_send_email(self):
print 'method calling done'