# -*- coding: utf-8 -*-

from openerp import fields, models

class Session(models.Model):
    _name = 'openacademy.session'

    name = fields.Char(required=True)
    start_date = fields.Date()
    duration = fields.Float(digits=(6,2), help="Duration in days")
    seats = fields.Integer(string="Number of seats")
    instructor_id = fields.Many2one('res.partner', string="Instructor")
    course_id = fields.Many2one('openacademy.course',
                                ondelete='cascade', string="Course", required=True)
    attendee_ids = fields.Many2many('res.partner', string="Attendees")

@@ -377,16 +377,178 @@
 tructor%22
+,%0A                                    domain=%5B'%7C',(%22instructor%22,%22=%22,%22True%22),%0A                                            (%22category_id.name%22, %22ilike%22, %22Teacher%22)%5D
 )%0A    co

Add domain | & ilike