[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.
- docs: note the _tool_plain_text sibling next to _tool_result in
ai/architecture.md so future connectors strip Html-field values.
| Subbuilds | Name | State | Detail |
|---|---|---|---|
| Build 386868 | Check the quality with Pylint: from test_lint to test_pylint 14m | Killed | Log |
| Build 386869 | At install tests: from account to website_twitter | Killed | Log |
| Build 386870 | Post install tests: step install all modules | Killed | Log |
| Build 386871 | Post install tests: from account to payment_bidv_viin | Killed | |
| Build 386872 | Post install tests: from payment_buckaroo to to_account_asset | Killed | |
| Build 386873 | Post install tests: from to_account_asset_purchase to viin_account | Killed | |
| Build 386874 | Post install tests: from viin_account_auto_transfer to viin_equipment_warranty_partner_infor | Killed | |
| Build 386875 | Post install tests: from viin_estimate to viin_product_multi_barcodes | Killed | |
| Build 386876 | Post install tests: from viin_project to website_twitter | Killed | |
| Build 386877 | Test install all modules without demo data: from account to website_twitter | Killed | Log |
| Create Date | Level | Message |
|---|---|---|
| 06/22/2026 00:40:21 | INFO |
Updated repository Viindoo-odoo
|
| 06/22/2026 00:40:21 | INFO |
Updated repository Viindoo-tvtmaaddons
|
| 06/22/2026 00:40:21 | INFO |
Updated repository Viindoo-erponline-enterprise
|
| 06/22/2026 00:40:21 | INFO |
Updated repository Viindoo-branding
|
| 06/22/2026 00:40:21 | INFO |
Cloned repository Viindoo-ai
|