title: Odoo. One to many search by field
body: <p>I extend module for employees in odoo 9. Every employee has children. Here my models:</p>
  
  <pre><code>class Employee(models.Model):
      _name = 'hr.employee'
      _inherit = 'hr.employee'
  
      children_ids = fields.One2many('my_module', 'employee_id', string="Children")
  
  
  class Child(models.Model):
      _name = 'my_module'
  
      name = fields.Char(required=True, string='Name')
  
      birthday = fields.Date(required=True, string='Birthday')
  
      employee_id = fields.Many2one('hr.employee', ondelete='cascade', string="Employee")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cUFXe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cUFXe.jpg" alt="enter image description here"></a></p>
  
  <p>How can I configure search by birthday? For example, I want to set in search date of birthday(or interval of dates) and the system must show me all employees which have children with birthday from search.</p>
  
  <p><a href="https://i.stack.imgur.com/ARgp3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ARgp3.jpg" alt="enter image description here"></a></p>
  
  <p>Here my search view(this works by name of child):</p>
  
  <pre><code>&lt;record id="view_urspectr_employee_filter" model="ir.ui.view"&gt;
      &lt;field name="name"&gt;Employees&lt;/field&gt;
      &lt;field name="model"&gt;hr.employee&lt;/field&gt;
      &lt;field name="inherit_id" ref="hr.view_employee_filter" /&gt;
      &lt;field name="arch" type="xml"&gt;
          &lt;search position="inside"&gt;
              &lt;field name="children_ids"/&gt;
          &lt;/search&gt;
      &lt;/field&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>I found the similar situation in module <em>account</em>(../addons/account/views/account_view.xml):</p>
  
  <pre><code>&lt;record id="view_account_move_filter" model="ir.ui.view"&gt;
              &lt;field name="name"&gt;account.move.select&lt;/field&gt;
              &lt;field name="model"&gt;account.move&lt;/field&gt;
              &lt;field name="arch" type="xml"&gt;
                  &lt;search string="Search Move"&gt;
                      &lt;field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/&gt;
                      &lt;field name="date"/&gt;
  </code></pre>
  
  <p>Search by date works is good. But in this case <em>date</em> field used without relation <strong>One2Many</strong>.</p>
  
  <p>Can you help with solution? I can't find example with search by One2Many.
  Thank you in advance.</p>