Name: [ADD] viin_ai_helpdesk, viin_ai_crm: Phase 4 AI connectors (helpdesk seed + CRM advisory tools)

State: Killed

PR State: merged

PR Author: David Tran

PR Author Email:

PR: #66

Committer: David Tran

Committer Email: davidtran.hp@gmail.com

Commit: a99029e82f9645575f2633351c97bb0a0bdb0d51

Description:

                                            [IMP] viin_ai_agent, viin_ai_crm, viin_ai_helpdesk: strip HTML from AI tool payloads

Connector tools fed raw Html-field values (lead/ticket description,
activity note, message body) straight into the payload the LLM reads -
HTML tags are token noise and can confuse the model.

- viin_ai_agent: add _tool_plain_text on ir.actions.server, a sibling of
  _tool_result that runs a value through html2plaintext ('' for falsy),
  callable from a server-action code body (safe_eval). Mirrors the
  existing viin_ai_chat plain-text helper; no viin_brain coupling.
- viin_ai_crm: strip crm.lead.description and mail.activity.note.
- viin_ai_helpdesk: strip viin.helpdesk.ticket.description and
  mail.message.body (strip first, then truncate so the cap applies to
  plain text).
- Surveyed the other connectors (account/sale/sale_crm/stock) and the
  AI/Brain tool surface: no other tool returns a raw Html field
  (Brain already returns the content_plain T1 representation).
- Tests: red-green behaviour tests assert the payload value carries no
  '<' and preserves the readable text, driven through a real
  ir.actions.server.run() as the tool's low-privilege group.
                                            

Branch: 17.0

Instance ID: 0

Age:

Up-time: Not finished

Subbuilds Name State Detail
Build 386858 Check the quality with Pylint: from test_lint to test_pylint Killed
Build 386859 At install tests: from account to website_twitter Killed
Build 386860 Post install tests: step install all modules Killed
Build 386861 Post install tests: from account to payment_bidv_viin Killed
Build 386862 Post install tests: from payment_buckaroo to to_account_asset Killed
Build 386863 Post install tests: from to_account_asset_purchase to viin_account Killed
Build 386864 Post install tests: from viin_account_auto_transfer to viin_equipment_warranty_partner_infor Killed
Build 386865 Post install tests: from viin_estimate to viin_product_multi_barcodes Killed
Build 386866 Post install tests: from viin_project to website_twitter Killed
Build 386867 Test install all modules without demo data: from account to website_twitter Killed
Create Date Level Message
06/22/2026 00:35:04 INFO
Updated repository Viindoo-odoo
06/22/2026 00:35:04 INFO
Updated repository Viindoo-tvtmaaddons
06/22/2026 00:35:04 INFO
Updated repository Viindoo-erponline-enterprise
06/22/2026 00:35:04 INFO
Updated repository Viindoo-branding
06/22/2026 00:35:04 INFO
Cloned repository Viindoo-ai