update
This commit is contained in:
31
fusion_clock_ai/models/ai_prompt.py
Normal file
31
fusion_clock_ai/models/ai_prompt.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2026 Nexa Systems Inc.
|
||||
# License OPL-1 (Odoo Proprietary License v1.0)
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class FusionClockAIPrompt(models.Model):
|
||||
_name = 'fusion.clock.ai.prompt'
|
||||
_description = 'AI Prompt Template'
|
||||
_order = 'key'
|
||||
|
||||
key = fields.Char(required=True, index=True)
|
||||
name = fields.Char(required=True)
|
||||
content = fields.Text(required=True)
|
||||
description = fields.Text(help="Explains when this prompt is used and what variables are available.")
|
||||
active = fields.Boolean(default=True)
|
||||
feature_category = fields.Selection([
|
||||
('manager_query', 'Manager Queries'),
|
||||
('employee_chat', 'Employee Chatbot'),
|
||||
('report', 'Report Narratives'),
|
||||
('anomaly', 'Anomaly Detection'),
|
||||
('coach', 'Attendance Coach'),
|
||||
('correction', 'Correction Advisor'),
|
||||
('prediction', 'Predictions'),
|
||||
('shift', 'Shift Optimization'),
|
||||
('compliance', 'Compliance'),
|
||||
('config', 'Configuration'),
|
||||
('geofence', 'Geofence Tuning'),
|
||||
('incident', 'Incident Explanation'),
|
||||
], required=True)
|
||||
Reference in New Issue
Block a user