Commit Graph

78 Commits

Author SHA1 Message Date
Claude AI
4877dc23d7 fix(odoo): usar post_init_hook para crear permisos
- Crear hooks.py con post_init_hook que crea permisos programáticamente
- Eliminar security/ directory (XML/CSV fallan en importación ZIP)
- Los permisos se crean después de que los modelos estén registrados

Esto garantiza que los permisos se creen correctamente independientemente
del método de instalación (ZIP o addons path).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 00:03:31 +00:00
Claude AI
626236c6dd fix(odoo): cambiar permisos de CSV a XML para importación ZIP
- Eliminar ir.model.access.csv (falla en importación ZIP)
- Crear ir_model_access.xml con registros de acceso
- Mover security al final del manifest (después de cargar modelos)
- Regenerar ZIP del módulo

El problema era que al importar vía ZIP, Odoo procesa el CSV
antes de registrar los modelos Python, causando error de external ID.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 00:02:50 +00:00
Claude AI
357987844e chore: agregar ZIP del módulo Odoo para descarga directa
Archivo ZIP listo para instalar en Odoo 19 vía Apps > Import Module

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 00:00:58 +00:00
Claude AI
de48f0177a fix(api-gateway): corregir errores de SQLAlchemy y dependencias
- Renombrar campo 'metadata' a 'extra_data' (palabra reservada SQLAlchemy)
- Agregar email-validator para pydantic[email]

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 23:18:28 +00:00
Claude AI
9b27eddb5f fix(odoo): corregir external IDs en security CSV
- Cambiar model_id:id a model_id/id (formato correcto)
- Agregar prefijo odoo_whatsapp_hub. a todas las referencias de modelo
- Necesario para que Odoo resuelva correctamente los IDs externos

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 23:13:59 +00:00
Claude AI
b747b6c49a fix: resolve TypeScript build errors and update Dockerfiles
- Changed npm ci to npm install in Dockerfiles (no lock files)
- Added git to whatsapp-core alpine image for npm dependencies
- Fixed TypeScript type errors in routes.ts (string | string[])
- Fixed SessionManager.ts type compatibility with Baileys
- Disabled noUnusedLocals/noUnusedParameters in frontend tsconfig

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 23:05:33 +00:00
Claude AI
991b8ddfe8 docs: update README with completed phases and add Odoo module install guide
- Updated README with all 6 completed phases
- Added access URLs for local network
- Added default credentials section
- Created comprehensive Odoo module installation guide
- Added project structure documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:53:29 +00:00
Claude AI
e10d67b19d chore(odoo): update module version to Odoo 19
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:48:46 +00:00
Claude AI
0c2e2f1b7a feat(odoo): add static description directory for module icon
- Add placeholder .gitkeep for icon.png location
- Required for Odoo Apps store compatibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:46:45 +00:00
Claude AI
48db1a94f7 feat(odoo): add conversation and partner views
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:45:44 +00:00
Claude AI
f1933cf0d0 feat(odoo): add security and data files
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:45:40 +00:00
Claude AI
ad218ecccf feat(odoo): add menu and account views
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:45:33 +00:00
Claude AI
5f61a815e5 feat(odoo): add wizard views
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:45:29 +00:00
Claude AI
13dedaf48d feat(odoo): add WhatsApp webhook controller
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:19 +00:00
Claude AI
cf424b1f37 feat(odoo): add OWL chat widget
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:14 +00:00
Claude AI
c8c6deb4de feat(odoo): add WhatsApp account model
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:08 +00:00
Claude AI
e85c9c10b5 feat(odoo): add WhatsApp conversation model
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:06 +00:00
Claude AI
218c137564 feat(odoo): add WhatsApp CSS styles
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:05 +00:00
Claude AI
1074bf6739 feat(odoo): extend res.partner with WhatsApp fields
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:03 +00:00
Claude AI
7551a3d8b7 feat(odoo): add WhatsApp message model
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:43:02 +00:00
Claude AI
87d59ca433 feat(odoo): create module structure and manifest
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:40:07 +00:00
Claude AI
1c01acd168 docs: add Fase 6 Odoo Module implementation plan 2026-01-29 22:36:17 +00:00
Claude AI
2820ffc3cf feat(frontend): add Odoo node components to FlowBuilder
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:30:03 +00:00
Claude AI
d1d1aa58e1 feat(flow-engine): add Odoo node executors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:28:26 +00:00
Claude AI
619b291f49 feat(integrations): add Odoo webhooks handler
Add webhook endpoints to receive events from Odoo (sale orders, stock
picking, invoices) and send WhatsApp notifications when orders are
confirmed, shipped, or payments are received.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:28:24 +00:00
Claude AI
95cd70af1f feat(integrations): add contact sync service
Add bidirectional contact synchronization between WhatsApp Central and Odoo,
including sync endpoints and ContactSyncService.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:26:18 +00:00
Claude AI
4b15abcbfb feat(integrations): add Odoo API routes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:25:36 +00:00
Claude AI
c81fac788d feat(integrations): add Partner service for Odoo contacts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:22:26 +00:00
Claude AI
63d4409c00 feat(frontend): add Odoo configuration page
Add OdooConfig page component with form for Odoo connection settings
(URL, database, username, API key) and test connection functionality.
Integrate into main navigation with ApiOutlined icon.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:22:12 +00:00
Claude AI
a40811b4a1 feat(integrations): add SaleOrder service for Odoo sales
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:21:54 +00:00
Claude AI
d2ce86bd41 feat(api-gateway): add Odoo config model and endpoints
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:19:17 +00:00
Claude AI
c50459755a feat(integrations): add Odoo XML-RPC client
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:19:03 +00:00
Claude AI
918b573de3 chore(docker): add integrations service and Odoo config
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:18:59 +00:00
Claude AI
e24bc20070 feat(integrations): setup integrations service structure
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:17:18 +00:00
Claude AI
24850e23f0 docs: add Fase 5 Odoo Integration implementation plan 2026-01-29 22:13:18 +00:00
Claude AI
67847da862 docs: update .env.example with DeepSeek config 2026-01-29 22:08:12 +00:00
Claude AI
a6c2e67c6a refactor(ai): replace OpenAI with DeepSeek API
- Update config.py with DEEPSEEK_API_KEY, DEEPSEEK_MODEL, DEEPSEEK_BASE_URL
- Update ai.py to use DeepSeek endpoint (OpenAI-compatible)
- Update docker-compose.yml environment variables
2026-01-29 22:05:10 +00:00
Claude AI
db1258bc2a feat(frontend): add Templates and Variables routes to MainLayout 2026-01-29 11:19:42 +00:00
Claude AI
0230ab4e36 feat(frontend): add advanced node components to FlowBuilder
Add visual components for all new Flow Engine node types including:
- Basic nodes: Buttons, SetVariable
- Control nodes: Switch, Delay, Random, Loop, GoTo
- Validation nodes: Email, Phone, Number, Date, Regex, Options
- Script nodes: JavaScript, HTTP Request
- AI nodes: AI Response, AI Sentiment

Reorganize toolbar into categorized dropdown menus for better UX.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:18:57 +00:00
Claude AI
b458b8e8dd refactor(flow-engine): use NodeRegistry for modular node execution
Replace hardcoded if/elif chain in _execute_node with dynamic node
executor lookup via NodeRegistry. All node executors are registered at
module load time, enabling extensibility without modifying engine code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:16:46 +00:00
Claude AI
20e5c2d13b feat(frontend): add GlobalVariables management page
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:16:20 +00:00
Claude AI
bcb09204ae chore(docker): add OpenAI config to flow-engine
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:16:04 +00:00
Claude AI
26e5ce5a31 feat(fase4): add validation nodes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:13:36 +00:00
Claude AI
058f837ecb feat(fase4): add advanced nodes - switch, delay, random, loop, goto
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:13:36 +00:00
Claude AI
62d4c37c1d feat(fase4): add GlobalVariable API routes
Add schemas and router for global variables with CRUD operations
and admin-only access controls for create/update/delete.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:13:26 +00:00
Claude AI
991bd161f0 feat(fase4): add AI response and sentiment nodes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:13:15 +00:00
Claude AI
76c48ff78f feat(fase4): add FlowTemplates frontend page
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:13:10 +00:00
Claude AI
af061b1a07 feat(fase4): add JavaScript and HTTP request nodes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:13:03 +00:00
Claude AI
b8d97e2557 feat(fase4): add FlowTemplate model and API
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:10:54 +00:00
Claude AI
835c4aa387 feat(fase4): add NodeExecutor architecture with basic nodes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:10:21 +00:00