title: How to get the current id section in odoo 9?
body: <p>When I click in a register of a list, in the url appears something like this:</p>
  
  <p><a href="http://myInstance:8069/web?&amp;debug=#id=9&amp;view_type=form&amp;model=ext.test&amp;action=544" rel="nofollow">http://myInstance:8069/web?&amp;debug=#id=9&amp;view_type=form&amp;model=ext.test&amp;action=544</a></p>
  
  <p>I need to capture the 9 (the value of id) in python in order to pass it as a default value of other field.</p>
  
  <p>I don't know how to capture this value.</p>
  
  <p>I want something similar like this:</p>
  
  <pre><code>@api.model
  def default_get(self, vals):
      result = super(my_relation, self).default_get(vals)
  
      result['my_id'] = HERE_GOES_THE_VALUE_OF_THE_ID
  
      return result
  </code></pre>
  
  <p>How can I do it?</p>