from odoo import models, fields


class OpCourseExtension(models.Model):
    _inherit = 'op.course'

    generation_source = fields.Selection([
        ('manual', 'Manual'),
        ('auto_gap', 'Auto from Gap'),
        ('ai_english', 'AI English'),
        ('ai_ielts', 'AI IELTS'),
    ])
    gap_profile_id = fields.Many2one('encoach.gap.profile', ondelete='set null')
    progression_model = fields.Selection([
        ('linear', 'Linear'),
        ('parallel', 'Parallel'),
        ('adaptive', 'Adaptive'),
    ], default='linear')
    target_band = fields.Float()
    study_hours_week = fields.Integer()
    entity_id = fields.Many2one('encoach.entity', ondelete='set null')
