From 4f5b6be884b633f5ce78a0f146c4c1b150cb157b Mon Sep 17 00:00:00 2001 From: Chaim Date: Fri, 3 Apr 2026 11:40:48 +0000 Subject: [PATCH] fix: register stream note views in clientDefs.Note.itemViews EspoCRM resolves note type views via clientDefs.Note.itemViews metadata. Without this mapping, it looked for SmartRequest/SmartResponse/SmartAction in the core views path instead of the module path, causing 404 errors. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 2 +- .../SmartAssistant/Resources/metadata/clientDefs/Note.json | 7 +++++++ manifest.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 files/custom/Espo/Modules/SmartAssistant/Resources/metadata/clientDefs/Note.json diff --git a/README.md b/README.md index ff0ce6e..36dc8f9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SmartAssistant - עוזר חכם -**גרסה:** 1.1.2 | **מחבר:** klear | **EspoCRM:** >= 8.0.0 +**גרסה:** 1.1.3 | **מחבר:** klear | **EspoCRM:** >= 8.0.0 ## תיאור עוזר AI מאוחד למשרד עורכי דין. מספק ממשק צ'אט צף עם שני מצבי עבודה: **מצב משרד** (סקירה כללית, התראות, סטטיסטיקות) ו**מצב תיק** (סיוע מעמיק בתיק ספציפי). כולל מערכת זיכרון תיק מובנית, ביצוע פעולות באישור המשתמש, ואינטגרציה עם Stream של EspoCRM. diff --git a/files/custom/Espo/Modules/SmartAssistant/Resources/metadata/clientDefs/Note.json b/files/custom/Espo/Modules/SmartAssistant/Resources/metadata/clientDefs/Note.json new file mode 100644 index 0000000..3abd823 --- /dev/null +++ b/files/custom/Espo/Modules/SmartAssistant/Resources/metadata/clientDefs/Note.json @@ -0,0 +1,7 @@ +{ + "itemViews": { + "SmartRequest": "modules/smart-assistant/views/stream/notes/smart-request", + "SmartResponse": "modules/smart-assistant/views/stream/notes/smart-response", + "SmartAction": "modules/smart-assistant/views/stream/notes/smart-action" + } +} diff --git a/manifest.json b/manifest.json index 653cc18..4fff905 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "module": "SmartAssistant", "description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and n8n integration", "author": "klear", - "version": "1.1.2", + "version": "1.1.3", "acceptableVersions": [ ">=8.0.0" ],