This commit introduces AI integration for helpdesk tickets to automatically generate sales orders: - openwebui_connector: New module providing integration with OpenWebUI AI service * Configurable API connection (key, base URL, model) * AI prompt template system for reusable prompts * Uses Claude 3 Sonnet model by default - helpdesk_sale_order_ai: Extends helpdesk_sale_order with AI capabilities * AI-powered analysis of ticket content to suggest products * Smart product quantity parsing from various formats * Dedicated UI tab for AI suggestions in helpdesk tickets * Auto-creation of sales orders with matched products The integration streamlines the process of converting customer support requests into sales opportunities.
21 lines
959 B
XML
21 lines
959 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="helpdesk_ticket_form_view_inherit_ai" model="ir.ui.view">
|
|
<field name="name">helpdesk.ticket.form.view.inherit.ai</field>
|
|
<field name="model">helpdesk.ticket</field>
|
|
<field name="inherit_id" ref="helpdesk.helpdesk_ticket_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='team_id']" position="after">
|
|
<field name="team_use_sale_orders" invisible="1"/>
|
|
<field name="team_use_ai_sale_orders" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//notebook" position="inside">
|
|
<page string="AI Suggestions" invisible="not team_use_ai_sale_orders">
|
|
<group>
|
|
<field name="ai_generated_products" widget="text" readonly="1"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|