- Restructure: move backend from new_project/ to backend/ - Add full React/TypeScript frontend (37 pages, 17 services, 16 type defs, 11 query hooks) - Add docs/ with SRS specs, user stories, and workflow documentation - Update .gitignore for new directory layout Workflows implemented: WF1 User Signup, WF2 Placement Test, WF3 Exam Configuration, WF4 General English Exam, WF5 Course Generation, WF6 Entity Student Onboarding, AI Course Generation, Adaptive Learning Engine UI, White-Label Branding, Score Release Made-with: Cursor
21 lines
823 B
Python
21 lines
823 B
Python
from odoo import api, models, fields
|
|
|
|
|
|
class EncoachAdaptiveSettings(models.Model):
|
|
_name = 'encoach.adaptive.settings'
|
|
_description = 'Adaptive Engine Settings'
|
|
|
|
teacher_id = fields.Many2one('res.users', ondelete='cascade')
|
|
entity_id = fields.Many2one('encoach.entity', ondelete='cascade')
|
|
step_up_threshold = fields.Float(default=0.85)
|
|
step_down_threshold = fields.Float(default=0.50)
|
|
micro_lesson_trigger = fields.Integer(default=2)
|
|
module_skip_threshold = fields.Float(default=0.95)
|
|
no_progress_alert_days = fields.Integer(default=3)
|
|
max_retries = fields.Integer(default=3)
|
|
|
|
@api.model
|
|
def _cron_check_no_progress(self):
|
|
from odoo.addons.encoach_adaptive.services.alert_service import AdaptiveAlertService
|
|
AdaptiveAlertService.check_no_progress(self.env)
|