How jadelgad0s/smartstock-multiempresa works
SmartStock is a Django multi-company inventory system. The main workflow is a user signing in through the shared entry point, working in their company’s isolated operational data, and recording inventory activity that can be reviewed through reports and audit history. Major capabilities include product and warehouse management, stock movements, FIFO lots, transfers, losses, physical locations, SMS alerts, and platform support. The graph uses README statements and shown routing/import references; unsampled modules are represented only where the README establishes their capability.
Main entry points: views.py Inventory API · urls.py Web entry · views_auth.py Authentication API · login.py Shared login
Components 23
Company access
- Web entry
config/urls.py - Shared login
esquema_multiempresa/login.py - Company directory
esquema_multiempresa/models.py - Company data
apps/core/empresa.py
Inventory operations
- Product catalog
apps/productos/models.py - Warehouse stock
apps/productos/stock.py - Inventory API
apps/productos/views.py - Lots and FIFO
apps/productos/fifo.py - Warehouse transfers
apps/productos/views_transferencias.py - Losses and write-offs
apps/productos/views_mermas.py - Physical locations
apps/productos/views_ubicaciones.py - Inventory reports
apps/productos/reportes.py - SMS alerts
apps/productos/alertas_sms.py
Identity and oversight
- Users and roles
apps/usuarios/models.py - Authentication API
apps/usuarios/views_auth.py - Permissions
apps/usuarios/permissions.py - Audit recording
apps/core/registro_auditoria.py - Audit history
apps/core/models.py
Platform services
- Support authorization
esquema_multiempresa/autorizacion_soporte.py - Platform panel
esquema_multiempresa - Contact inbox
esquema_multiempresa/buzon_contacto.py
Other components
- Company user
- SMS provider
Connections 22
- Company user → Web entry: opens
README.md - Web entry → Authentication API: routes auth
config/urls.py - Web entry → Inventory API: routes inventory
config/urls.py - Company user → Shared login: signs in
README.md - Shared login → Company directory: selects company
- Company directory → Company data: isolates data
README.md - Inventory API → Product catalog: manages products
apps/productos/views.py - Inventory API → Warehouse stock: annotates stock
apps/productos/views.py - Inventory API → Users and roles: checks permissions
- Inventory API → Lots and FIFO: supports lots
README.md - Inventory API → Warehouse transfers: supports transfers
README.md - Inventory API → Losses and write-offs: records losses
README.md - Inventory API → Physical locations: manages locations
README.md - Inventory API → Inventory reports: provides reports
README.md - Inventory API → SMS alerts: supports alerts
README.md - SMS alerts → SMS provider: sends SMS
- Authentication API → Users and roles: authenticates
apps/usuarios/views_auth.py - Authentication API → Audit recording: records login
apps/usuarios/views_auth.py - Audit recording → Audit history: writes events
apps/core/registro_auditoria.py - Company user → Platform panel: uses platform
README.md - Platform panel → Support authorization: authorizes support
esquema_multiempresa/selenium_suite.py - Company user → Contact inbox: contacts support
README.md