bemade-addons/openwebui_base/views/res_config_settings.xml
mathis c5904a51d7 [REF] Replace openwebui_connector with centralized openwebui_base module
This commit represents a significant architectural improvement:

- Completely replaced openwebui_connector with a more robust openwebui_base module
- Centralized OpenWebUI API integration for better maintainability
- Redesigned helpdesk_sale_order_ai to use the new openwebui_base module
- Added support for multiple OpenWebUI providers and models
- Improved error handling and response parsing
- Added proper template management with openwebui_prompt_template
- Fixed KeyError issues with safe template substitution
- Streamlined API client initialization and usage
2025-07-28 13:27:29 -04:00

39 lines
No EOL
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.openwebui.base</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 string="OpenWebUI" name="openwebui_base" groups="base.group_system">
<block title="AI Configuration" id="openwebui_config_container">
<setting id="ai_provider" help="Select the AI provider to use with OpenWebUI">
<field name="openwebui_provider_id"/>
</setting>
<setting id="default_model" help="Select the default model to use with OpenWebUI">
<field name="openwebui_default_model_id"/>
</setting>
</block>
<block title="Helpdesk Integration" id="openwebui_helpdesk_integration">
<setting id="use_ai_sale_orders" help="If enabled, the system will use AI to automatically generate sale orders from helpdesk ticket descriptions.">
<field name="use_ai_sale_orders"/>
<div class="text-muted">
Enable AI-powered sale order generation from helpdesk tickets
</div>
</setting>
</block>
</app>
</xpath>
</field>
</record>
<record id="action_openwebui_config_settings" model="ir.actions.act_window">
<field name="name">Settings</field>
<field name="res_model">res.config.settings</field>
<field name="view_id" ref="res_config_settings_view_form"/>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'openwebui_base', 'bin_size': False}</field>
</record>
</odoo>