'Check filter on recordsets.'

@mute_logger('odoo.models')
def test_80_filter(self):

    ps = self.env['res.partner'].search([])
    customers = ps.browse([p.id for p in ps if p.customer])
    self.assertEqual(ps.filtered((lambda p: p.customer)), customers)
    self.assertEqual(ps.filtered('customer'), customers)
    self.assertEqual(ps.filtered((lambda p: p.parent_id.customer)), ps.filtered('parent_id.customer'))
