title: how to know from which class a method of another class is called in odoo
body: <p>I have 2 models  </p>
  
  <ul>
  <li>1: example.orderline</li>
  <li>2: product.product</li>
  </ul>
  
  <p>which are in separate classes</p>
  
  <p>there is a many2one field "stock" in example.orderline 
  stock=fields.Many2one("product.product","Product")</p>
  
  <p>I want to override <code>name_get</code> method of model "product.product" for field "stock"
  which I did successfully:</p>
  
  <pre><code>def name_get(self):
       result = []
       for record in self:
          default_code = record.default_code
          result.append((record.id, default_code))
  
      return result
  </code></pre>
  
  <p>But the above also applies to Sale order and purchase order.
  how to name get method only applies for example.orderline model? </p>