title: Odoo - Convert string to float in python
body: <pre><code>time  = datetime.strptime(str(shift_change_ob.shift_date) ,"%Y-%m-%d %H:%M:%S").strftime("%H:%M")
  self.orginal_shift_time = float(time)
  </code></pre>
  
  <p>type(time) is <strong>string</strong> while type(self.orginal_shift_time) is <strong>float</strong>. So I am getting <strong>ValueError: invalid literal for float(): 07:00</strong>. How can I assign string value to float field? </p>