32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# -*- 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)
|