'check search on one2many field based on inherited many2one field.'

def test_50_search_one2many(self):

    partner_demo = self.env.ref('base.partner_demo')
    daughter = self.env['test.inherit.daughter'].create({'partner_id': partner_demo.id})
    self.assertEqual(daughter.partner_id, partner_demo)
    self.assertIn(daughter, partner_demo.daughter_ids)
    partners = self.env['res.partner'].search([('daughter_ids', 'like', 'not    existing    daugther')])
    self.assertFalse(partners)
    partners = self.env['res.partner'].search([('daughter_ids', 'not    like', 'not    existing    daugther')])
    self.assertIn(partner_demo, partners)
    partners = self.env['res.partner'].search([('daughter_ids', '!=', False)])
    self.assertIn(partner_demo, partners)
    partners = self.env['res.partner'].search([('daughter_ids', 'in', daughter.ids)])
    self.assertIn(partner_demo, partners)
