# sothearith22/odoo architecture

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

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

## Overview

Odoo is a web-based suite of business applications that can run independently or integrate as an ERP. The supplied tree centers on its accounting app and related extensions, so the graph emphasizes the accounting user journey: entering financial documents, posting and reconciling them, paying or sending them, and reviewing results. It also preserves major accounting capabilities such as analytics, reporting, and electronic invoicing. The excerpts do not show accounting-module calls; dashed, unverified links reflect that evidence limit rather than asserted call chains.

Main entry points: [`addons/account/models/account_move.py`](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_move.py) (Invoices and entries), [`addons/account_edi/models/account_edi_document.py`](https://github.com/sothearith22/odoo/blob/school_management/addons/account_edi/models/account_edi_document.py) (Electronic invoicing), [`addons/account/static/src/views/account_move_list/account_move_list_view.js`](https://github.com/sothearith22/odoo/blob/school_management/addons/account/static/src/views/account_move_list/account_move_list_view.js) (Accounting workspace), [`odoo/http.py`](https://github.com/sothearith22/odoo/blob/school_management/odoo/http.py) (HTTP dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounting["Accounting records"]
  node_account_ui["Accounting workspace"]
  node_journals["Journals and accounts<br/>[account_journal.py]"]
  node_invoices["Invoices and entries<br/>[account_move.py]"]
  node_tax["Tax calculation<br/>[account_tax.py]"]
  node_analytics["Analytic accounting<br/>[analytic_line.py]"]
end

subgraph group_operations["Accounting operations"]
  node_payments["Payments<br/>[account_payment.py]"]
  node_reconciliation["Reconciliation"]
  node_bank_statements["Bank statements"]
  node_reports["Financial reports<br/>[account_report.py]"]
  node_payment_portal["Online payments<br/>[payment.py]"]
end

subgraph group_exchange["Document exchange"]
  node_edi["Electronic invoicing"]
  node_ubl["UBL and CII formats<br/>[account_edi_ubl.py]"]
  node_peppol["Peppol exchange"]
end

subgraph group_runtime["Odoo runtime"]
  node_http["HTTP dispatch<br/>[http.py]"]
  node_orm["Object-relational model<br/>[models.py]"]
end

node_user(("Business user"))
node_database[("PostgreSQL database")]

node_user -->|"submits requests"| node_http
node_http -.->|"routes to"| node_account_ui
node_account_ui -.->|"works with"| node_invoices
node_invoices -.->|"uses"| node_journals
node_invoices -.->|"calculates"| node_tax
node_invoices -.->|"allocates"| node_analytics
node_invoices -.->|"settles through"| node_payments
node_bank_statements -.->|"reconciles with"| node_reconciliation
node_invoices -.->|"reconciles with"| node_reconciliation
node_user -.->|"pays online"| node_payment_portal
node_invoices -.->|"exchanges documents"| node_edi
node_edi -.->|"formats as"| node_ubl
node_edi -.->|"sends via"| node_peppol
node_reports -.->|"reports on"| node_invoices
node_invoices -.->|"uses"| node_orm
node_orm -.->|"persists records"| node_database

click node_account_ui "https://github.com/sothearith22/odoo/blob/school_management/addons/account/static/src/views/account_move_list/account_move_list_view.js"
click node_journals "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_journal.py"
click node_invoices "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_move.py"
click node_tax "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_tax.py"
click node_analytics "https://github.com/sothearith22/odoo/blob/school_management/addons/analytic/models/analytic_line.py"
click node_payments "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_payment.py"
click node_reconciliation "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_reconcile_model.py"
click node_bank_statements "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_bank_statement.py"
click node_reports "https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_report.py"
click node_payment_portal "https://github.com/sothearith22/odoo/blob/school_management/addons/account_payment/controllers/payment.py"
click node_edi "https://github.com/sothearith22/odoo/blob/school_management/addons/account_edi/models/account_edi_document.py"
click node_ubl "https://github.com/sothearith22/odoo/blob/school_management/addons/account_edi_ubl_cii/models/account_edi_ubl.py"
click node_peppol "https://github.com/sothearith22/odoo/blob/school_management/addons/account_peppol/models/account_move_send.py"
click node_http "https://github.com/sothearith22/odoo/blob/school_management/odoo/http.py"
click node_orm "https://github.com/sothearith22/odoo/blob/school_management/odoo/orm/models.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_account_ui,node_journals,node_invoices,node_tax,node_analytics,node_user toneBlue
class node_payments,node_reconciliation,node_bank_statements,node_reports,node_payment_portal,node_database toneAmber
class node_edi,node_ubl,node_peppol toneMint
class node_http,node_orm toneRose
```

## Components

### Accounting records

- [Accounting workspace](https://github.com/sothearith22/odoo/blob/school_management/addons/account/static/src/views/account_move_list/account_move_list_view.js): `addons/account/static/src/views/account_move_list/account_move_list_view.js`
- [Journals and accounts](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_journal.py): `addons/account/models/account_journal.py`
- [Invoices and entries](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_move.py): `addons/account/models/account_move.py`
- [Tax calculation](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_tax.py): `addons/account/models/account_tax.py`
- [Analytic accounting](https://github.com/sothearith22/odoo/blob/school_management/addons/analytic/models/analytic_line.py): `addons/analytic/models/analytic_line.py`

### Accounting operations

- [Payments](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_payment.py): `addons/account/models/account_payment.py`
- [Reconciliation](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_reconcile_model.py): `addons/account/models/account_reconcile_model.py`
- [Bank statements](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_bank_statement.py): `addons/account/models/account_bank_statement.py`
- [Financial reports](https://github.com/sothearith22/odoo/blob/school_management/addons/account/models/account_report.py): `addons/account/models/account_report.py`
- [Online payments](https://github.com/sothearith22/odoo/blob/school_management/addons/account_payment/controllers/payment.py): `addons/account_payment/controllers/payment.py`

### Document exchange

- [Electronic invoicing](https://github.com/sothearith22/odoo/blob/school_management/addons/account_edi/models/account_edi_document.py): `addons/account_edi/models/account_edi_document.py`
- [UBL and CII formats](https://github.com/sothearith22/odoo/blob/school_management/addons/account_edi_ubl_cii/models/account_edi_ubl.py): `addons/account_edi_ubl_cii/models/account_edi_ubl.py`
- [Peppol exchange](https://github.com/sothearith22/odoo/blob/school_management/addons/account_peppol/models/account_move_send.py): `addons/account_peppol/models/account_move_send.py`

### Odoo runtime

- [HTTP dispatch](https://github.com/sothearith22/odoo/blob/school_management/odoo/http.py): `odoo/http.py`
- [Object-relational model](https://github.com/sothearith22/odoo/blob/school_management/odoo/orm/models.py): `odoo/orm/models.py`

### Other components

- **Business user**
- **PostgreSQL database**

## Connections

- Business user → HTTP dispatch: submits requests (evidence: `odoo/http.py`)
- HTTP dispatch → Accounting workspace: routes to
- Accounting workspace → Invoices and entries: works with
- Invoices and entries → Journals and accounts: uses
- Invoices and entries → Tax calculation: calculates
- Invoices and entries → Analytic accounting: allocates
- Invoices and entries → Payments: settles through
- Bank statements → Reconciliation: reconciles with
- Invoices and entries → Reconciliation: reconciles with
- Business user → Online payments: pays online
- Invoices and entries → Electronic invoicing: exchanges documents
- Electronic invoicing → UBL and CII formats: formats as
- Electronic invoicing → Peppol exchange: sends via
- Financial reports → Invoices and entries: reports on
- Invoices and entries → Object-relational model: uses
- Object-relational model → PostgreSQL database: persists records
