# alejandrovrod/replicate-odoo architecture

> Architecture diagram of the GitHub repository alejandrovrod/replicate-odoo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alejandrovrod/replicate-odoo
- Repository: https://github.com/alejandrovrod/replicate-odoo

## Overview

Odoo is an extensible business application platform: users reach application features through HTTP, while the server routes requests into addon functionality backed by the ORM and PostgreSQL. The tree shows accounting, payments, electronic invoicing, and reporting as prominent product capabilities. The sampled sources and SOURCE INDEX support the platform request, persistence, configuration, and server relationships; the README is empty, and addon internals were not sampled, so links among domain features are left unverified.

Main entry points: [`odoo-20.0/odoo/http/server.py`](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/server.py) (HTTP server), [`odoo-20.0/odoo/service/server.py`](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/service/server.py) (Service server), [`odoo-20.0/odoo/http/router.py`](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/router.py) (Request router), [`odoo-20.0/odoo/tools/config.py`](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/config.py) (Runtime configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request handling"]
  node_http_server["HTTP server<br/>[server.py]"]
  node_http_router["Request router<br/>[router.py]"]
  node_request_lib["Request context<br/>[requestlib.py]"]
  node_http_session["HTTP sessions<br/>[session.py]"]
  node_http_stream["HTTP streams<br/>[stream.py]"]
end

subgraph group_runtime["Server runtime"]
  node_service["Service server<br/>[server.py]"]
  node_configuration["Runtime configuration<br/>[config.py]"]
  node_logging["Logging<br/>[logging.py]"]
  node_exceptions["Exception types<br/>[exceptions.py]"]
  node_tools["Shared utilities<br/>[misc.py]"]
  node_json_tools["JSON utilities<br/>[json.py]"]
  node_translate["Translation<br/>[translate.py]"]
  node_release["Release metadata<br/>[release.py]"]
end

subgraph group_data["Data platform"]
  node_orm_models["ORM models<br/>[models.py]"]
  node_orm_query["ORM queries<br/>[query.py]"]
  node_sql_tools["SQL utilities<br/>[sql.py]"]
  node_sql_db["Database access<br/>[sql_db.py]"]
end

subgraph group_accounting["Accounting capabilities"]
  node_accounting["Accounting core<br/>[account_move.py]"]
  node_payments["Payment processing<br/>[account_payment.py]"]
  node_reports["Accounting reports<br/>[account_report.py]"]
end

subgraph group_extensions["Business extensions"]
  node_edi["Electronic invoicing"]
  node_edi_formats["Invoice formats<br/>[account_edi_ubl.py]"]
end

node_user(("User"))
node_database[("PostgreSQL")]

node_user -->|"sends request"| node_http_server
node_service -->|"serves HTTP"| node_http_server
node_http_server -->|"dispatches request"| node_http_router
node_http_router -->|"uses context"| node_request_lib
node_http_server -->|"uses sessions"| node_http_session
node_http_server -->|"uses streams"| node_http_stream
node_service -->|"reads settings"| node_configuration
node_service -->|"uses database access"| node_sql_db
node_service -->|"logs runtime"| node_logging
node_http_router -->|"handles errors"| node_exceptions
node_http_router -->|"reads settings"| node_configuration
node_orm_query -->|"uses models"| node_orm_models
node_orm_query -->|"builds queries"| node_sql_tools
node_sql_db -.->|"uses SQL utilities"| node_sql_tools
node_sql_db -.->|"reads and writes"| node_database
node_configuration -->|"reads metadata"| node_release
node_configuration -->|"uses utilities"| node_tools
node_logging -->|"writes log records"| node_sql_db
node_logging -->|"serializes metadata"| node_json_tools
node_accounting -.->|"payment integration"| node_payments
node_accounting -.->|"reporting integration"| node_reports
node_accounting -.->|"electronic invoicing"| node_edi
node_edi -.->|"format integration"| node_edi_formats

click node_http_server "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/server.py"
click node_http_router "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/router.py"
click node_request_lib "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/requestlib.py"
click node_http_session "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/session.py"
click node_http_stream "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/stream.py"
click node_service "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/service/server.py"
click node_configuration "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/config.py"
click node_logging "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/logging.py"
click node_exceptions "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/exceptions.py"
click node_orm_models "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/orm/models.py"
click node_orm_query "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/orm/query.py"
click node_sql_tools "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/sql.py"
click node_sql_db "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/sql_db.py"
click node_tools "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/misc.py"
click node_json_tools "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/json.py"
click node_translate "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/translate.py"
click node_release "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/release.py"
click node_accounting "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account/models/account_move.py"
click node_payments "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account_payment/models/account_payment.py"
click node_reports "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account/models/account_report.py"
click node_edi "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account_edi/models/account_edi_document.py"
click node_edi_formats "https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account_edi_ubl_cii/models/account_edi_ubl.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_http_server,node_http_router,node_request_lib,node_http_session,node_http_stream,node_user toneBlue
class node_service,node_configuration,node_logging,node_exceptions,node_tools,node_json_tools,node_translate,node_release,node_database toneAmber
class node_orm_models,node_orm_query,node_sql_tools,node_sql_db toneMint
class node_accounting,node_payments,node_reports toneRose
class node_edi,node_edi_formats toneIndigo
```

## Components

### Request handling

- [HTTP server](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/server.py): `odoo-20.0/odoo/http/server.py`
- [Request router](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/router.py): `odoo-20.0/odoo/http/router.py`
- [Request context](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/requestlib.py): `odoo-20.0/odoo/http/requestlib.py`
- [HTTP sessions](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/session.py): `odoo-20.0/odoo/http/session.py`
- [HTTP streams](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/http/stream.py): `odoo-20.0/odoo/http/stream.py`

### Server runtime

- [Service server](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/service/server.py): `odoo-20.0/odoo/service/server.py`
- [Runtime configuration](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/config.py): `odoo-20.0/odoo/tools/config.py`
- [Logging](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/logging.py): `odoo-20.0/odoo/logging.py`
- [Exception types](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/exceptions.py): `odoo-20.0/odoo/exceptions.py`
- [Shared utilities](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/misc.py): `odoo-20.0/odoo/tools/misc.py`
- [JSON utilities](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/json.py): `odoo-20.0/odoo/tools/json.py`
- [Translation](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/translate.py): `odoo-20.0/odoo/tools/translate.py`
- [Release metadata](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/release.py): `odoo-20.0/odoo/release.py`

### Data platform

- [ORM models](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/orm/models.py): `odoo-20.0/odoo/orm/models.py`
- [ORM queries](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/orm/query.py): `odoo-20.0/odoo/orm/query.py`
- [SQL utilities](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/tools/sql.py): `odoo-20.0/odoo/tools/sql.py`
- [Database access](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/odoo/sql_db.py): `odoo-20.0/odoo/sql_db.py`

### Accounting capabilities

- [Accounting core](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account/models/account_move.py): `odoo-20.0/addons/account/models/account_move.py`
- [Payment processing](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account_payment/models/account_payment.py): `odoo-20.0/addons/account_payment/models/account_payment.py`
- [Accounting reports](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account/models/account_report.py): `odoo-20.0/addons/account/models/account_report.py`

### Business extensions

- [Electronic invoicing](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account_edi/models/account_edi_document.py): `odoo-20.0/addons/account_edi/models/account_edi_document.py`
- [Invoice formats](https://github.com/alejandrovrod/replicate-odoo/blob/main/odoo-20.0/addons/account_edi_ubl_cii/models/account_edi_ubl.py): `odoo-20.0/addons/account_edi_ubl_cii/models/account_edi_ubl.py`

### Other components

- **User**
- **PostgreSQL**

## Connections

- User → HTTP server: sends request (evidence: `odoo-20.0/odoo/http/server.py`)
- Service server → HTTP server: serves HTTP (evidence: `odoo-20.0/odoo/service/server.py`)
- HTTP server → Request router: dispatches request (evidence: `odoo-20.0/odoo/http/server.py`)
- Request router → Request context: uses context (evidence: `odoo-20.0/odoo/http/router.py`)
- HTTP server → HTTP sessions: uses sessions (evidence: `odoo-20.0/odoo/http/__init__.py`)
- HTTP server → HTTP streams: uses streams (evidence: `odoo-20.0/odoo/http/__init__.py`)
- Service server → Runtime configuration: reads settings (evidence: `odoo-20.0/odoo/service/server.py`)
- Service server → Database access: uses database access (evidence: `odoo-20.0/odoo/service/server.py`)
- Service server → Logging: logs runtime (evidence: `odoo-20.0/odoo/service/server.py`)
- Request router → Exception types: handles errors (evidence: `odoo-20.0/odoo/http/router.py`)
- Request router → Runtime configuration: reads settings (evidence: `odoo-20.0/odoo/http/router.py`)
- ORM queries → ORM models: uses models (evidence: `odoo-20.0/odoo/orm/query.py`)
- ORM queries → SQL utilities: builds queries (evidence: `odoo-20.0/odoo/orm/query.py`)
- Database access → SQL utilities: uses SQL utilities (evidence: `odoo-20.0/odoo/tools/sql.py`)
- Database access → PostgreSQL: reads and writes
- Runtime configuration → Release metadata: reads metadata (evidence: `odoo-20.0/odoo/tools/config.py`)
- Runtime configuration → Shared utilities: uses utilities (evidence: `odoo-20.0/odoo/tools/config.py`)
- Logging → Database access: writes log records (evidence: `odoo-20.0/odoo/logging.py`)
- Logging → JSON utilities: serializes metadata (evidence: `odoo-20.0/odoo/logging.py`)
- Accounting core → Payment processing: payment integration
- Accounting core → Accounting reports: reporting integration
- Accounting core → Electronic invoicing: electronic invoicing
- Electronic invoicing → Invoice formats: format integration
