<commit_before>from openerp import fields
from openerp import 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')<commit_msg>[REF] openacademy: Adding domain<commit_after>from openerp import fields
from openerp import 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",
				domain=['|',
                                       ("instructor", "=", True),
                                       ("category_id", "ilike", "Teacher"),
                                  ])
    course_id = fields.Many2one('openacademy.course',
        ondelete='cascade', string="Course", required=True)
    attendee_ids = fields.Many2many('res.partner',string='Attendees')
{'fraction_non_alphanumeric': 0.13399857448325017, 'fraction_numerical': 0.007127583749109052, 'mean_word_length': 3.2804878048780486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4810626', 'n_tokens_mistral': 427, 'n_tokens_neox': 415, 'n_words': 76}