title: Odoo how to filter many2one field values in one2many field
body: <p>I have many2one field <strong>name_id</strong>. Usually when I use it in <strong>my_model.xml</strong> code below in this field I can select from all the values written in <strong>my.model.line</strong>.
  In this case I want to filter values and see the list of only these values which are written in current my.model.</p>
  
  <p>my_model.xml</p>
  
  <pre><code>    &lt;record model="ir.ui.view" id="view_my_model_form"&gt;
          &lt;field name="name"&gt;my.model.form&lt;/field&gt;
          &lt;field name="model"&gt;my.model&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;form string="My Model"&gt;
              &lt;header&gt;
  
                          &lt;field name="my_model_line"&gt;
                              &lt;tree&gt;
                                  &lt;field name="name"/&gt;
                              &lt;/tree&gt;
                           &lt;/field&gt;
                 &lt;notebook&gt;
                      &lt;page&gt;
                          &lt;field name="supply_conditions_status"&gt;
              &lt;tree string="My model Lines"&gt;
                                  &lt;field name="name_id"/&gt;
                              &lt;/tree&gt;
  </code></pre>
  
  <p>Classes:</p>
  
  <pre><code>class SupplyConditions(models.Model):
      _name = 'supply.conditions'
  
      name_id = fields.Many2one('my.model.line', string='Product')
      model_id = fields.Many2one('my.model')
  
  
  class MyModelLine(models.Model):
      _name = 'my.model.line'
  
      name = fields.Char('Name')
      my_model_id = fields.Many2one('my.model')
  
  class MyModel(models.Model):
      _name = 'my.model'
  
      title = fields.Char('Title')
      my_model_line = fields.One2many('my.model.line', 'my_model_id')
      supply_conditions_status = fields.One2many('supply.conditions', 'model_id')
  </code></pre>
  
  <p>For clearer understanding - example:</p>
  
  <p>I have form view of my.model (field name = 'first') and my.model (field name = 'second').</p>
  
  <p>In my.model (name = 'first')
  In my_model_line name field added data: 'item1', 'item2'</p>
  
  <p>In my.model (name = 'second')
  In my_model_line name field added data: '1item', '2item'</p>
  
  <p><strong>Now:</strong></p>
  
  <p>In my.model (name = 'first')
  supply_conditions_status name_id field I see selection of: '1item', '2item, item1', 'item2'</p>
  
  <p><strong>Need:</strong></p>
  
  <p>In my.model (name = 'first')
  supply_conditions_status name_id
  possibility to select only from 'item1', 'item2'</p>
  
  <p>How can I achieve this?</p>