Documents
Sections
Document Management
Documents
Documents Module
The documents module provides a complete electronic document management system (DMS) with OCR and cloud storage.
Main models
- Document — Uploaded file with metadata
- Dossier — Folder tree for organisation
- VersionDocument — Document version history
- Tag — Labels for cross-cutting classification
Features
- Upload — Drag-and-drop files, multiple upload
- Built-in OCR — Automatic text extraction from images and PDFs
- Full-text search — Search through OCR-extracted content
- Semantic search — Similarity search via embeddings (pgvector)
- Versioning — Complete modification history
- Preview — PDF, image and Office document previews
- S3 storage — All files stored in MinIO via django-storages
Nextcloud integration
The documents module integrates with Nextcloud for:
- Shared storage — MinIO as common S3 backend
- SSO — Single sign-on via OIDC (Django provider)
- Sync — File access from the Nextcloud client
- Collaboration — File sharing between users
Interactions
- Accounting — Attachments to journal entries
- Invoicing — Storage of generated invoice PDFs
- Payroll — Archival of pay slips
- Editor — Open documents in OnlyOffice
- AI Chat — The chat can search through documents