Files
Odoo-Modules/fusion_helpdesk_central/views/res_config_settings_views.xml
gsinghpal 52849777dd feat(fusion_helpdesk_central): expose OpenAI key + cron settings in UI
Adding the 'Fusion Helpdesk Central' block to General Settings so the
three ICP keys the engagement flow reads are configurable from a real
form instead of forcing admins to open Technical → System Parameters.

Three settings, all wired via config_parameter= so the existing read
paths (engagement_wizard, _fc_send_engagement_reminders) keep working
unchanged:

- fusion_helpdesk_central.openai_api_key (password widget — doesn't
  render plaintext on the form)
- fusion_helpdesk_central.openai_model (default 'gpt-4o-mini')
- fusion_helpdesk_central.engagement_reminder_days (default 3, 0
  disables the reminder cron entirely)

Bumps fusion_helpdesk_central to 19.0.2.2.0.

Find under Settings → Fusion Helpdesk Central. The block has two
sub-sections: "Owner Approval — AI Summary" (key + model) and
"Owner Approval — Reminder Cadence" (days).
2026-05-27 13:36:44 -04:00

53 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 Nexa Systems Inc.
License OPL-1
General Settings → Fusion Helpdesk Central. Surfaces the three ICP
keys that drive the engagement flow's AI summary + reminder cron.
Password widget on the API key so it doesn't render in plaintext on
the settings form (still recoverable via System Parameters, but at
least it's not over-the-shoulder visible).
-->
<odoo>
<record id="res_config_settings_view_form_fhc" model="ir.ui.view">
<field name="name">res.config.settings.view.form.fusion.helpdesk.central</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//form" position="inside">
<app data-string="Fusion Helpdesk Central"
string="Fusion Helpdesk Central"
name="fusion_helpdesk_central">
<block title="Owner Approval — AI Summary"
name="fhc_openai">
<setting id="fhc_openai_api_key"
string="OpenAI API Key"
help="Used by the 'Request Owner Approval' wizard to auto-generate the brief shown to the owner. Leave blank to disable AI summary — the wizard still works, you write the brief manually.">
<field name="fhc_openai_api_key"
password="True"
placeholder="sk-…"/>
</setting>
<setting id="fhc_openai_model"
string="OpenAI Model"
help="Default gpt-4o-mini is cheap (~$0.15/M input tokens) and fast. Bump to gpt-4o if summaries are too thin.">
<field name="fhc_openai_model"
placeholder="gpt-4o-mini"/>
</setting>
</block>
<block title="Owner Approval — Reminder Cadence"
name="fhc_reminder">
<setting id="fhc_engagement_reminder_days"
string="Send reminder after (days)"
help="Days the cron waits before sending a single follow-up reminder on a pending engagement. 0 disables reminders. The cron sends AT MOST ONE reminder per engagement regardless of value — re-engaging the same ticket resets the clock.">
<field name="fhc_engagement_reminder_days"/>
</setting>
</block>
</app>
</xpath>
</field>
</record>
</odoo>