Skip to content

Instantly share code, notes, and snippets.

@foxcarlos
Created December 6, 2019 17:11
Show Gist options
  • Save foxcarlos/e9f69ae77c9a850523f7549421ce57bc to your computer and use it in GitHub Desktop.
Save foxcarlos/e9f69ae77c9a850523f7549421ce57bc to your computer and use it in GitHub Desktop.
Uso de csrf_token en un form odoo template
<form action="/guia" method="get" >
<!--<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>-->
<input type="hidden"/>
<div class="input-group">
<input type="text" name="search" class="search form-control" placeholder="Enter name to search" />
<div class="input-group-btn input-group-lg input-group-md">
<button type="submit" style="background-color:#9CB96A;" class="btn">
Search
</button>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment