title: How to save data from a drop-down list in odoo
body: <p>In one of my pages of my odoo 9 website I have a drop down list(using select tag in xml view), how can I save the option that the user chooses?</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;select type="text" name="delivery_time" class="form-control" t-att-value="website_sale_order.delivery_time"&gt;
      &lt;option value="1"&gt;8 AM - 10 AM&lt;/option&gt;
      &lt;option value="2"&gt;10 AM - 12 PM&lt;/option&gt;
      &lt;option value="3"&gt;12 PM - 2 PM&lt;/option&gt;
      &lt;option value="4"&gt;2 PM - 4 PM&lt;/option&gt;
      &lt;option value="5"&gt;4 PM - 6 PM&lt;/option&gt;
  &lt;/select
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>class odss_sale_order(models.Model):
      _inherit = "sale.order"
  
      delivery_time = fields.Char()
  </code></pre>
  
  <p>As you can see I have already tried doing stuff in the model so it works but I cant seem to get it, any idea why it doesn't work?</p>
  
  <p>EDIT: I am looking for an answer similar to <a href="https://stackoverflow.com/a/4525859/4591818">this</a> one but for Odoo instead of PHP.</p>