title: How to solve the object issue in clickable state field in odoo10?
body: <p>I have a model with clickable selection field</p>
  
  <p>*****py*****</p>
  
  <pre><code>state = fields.Selection([('new', 'New'), ('in_progress', 'In Progress'), ('done', 'Done')], default='new')
  </code></pre>
  
  <p>*****xml*****</p>
  
  <pre><code>field name="state" widget="statusbar" clickable="True"
  </code></pre>
  
  <p>****function****</p>
  
  <pre><code>@api.onchange('state')
  def onchange_state(self):
      print self
  </code></pre>
  
  <p>****notes****</p>
  
  <p>it  printes like this</p>
  
  <p>****** odoo.models.NewId object at 0x7f624b7b7b90******</p>
  
  <blockquote>
    <p><strong>questions</strong></p>
    
    <p>is it possible to get the id of the record based on this clickable
    selection field in onchange event?</p>
  </blockquote>