# saylani-welfare-trust/swit-odoo architecture

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

- Interactive diagram: https://gitdiagram.com/saylani-welfare-trust/swit-odoo
- Repository: https://github.com/saylani-welfare-trust/swit-odoo

## Overview

This repository is a collection of Odoo addons extending accounting, donations, inventory/procurement, point of sale, and dashboards/reporting. The tree suggests user workflows such as recording a donation or importing a bank statement, but the README provides no product overview and most addon implementations were not excerpted, so their orchestration cannot be established. The graph emphasizes documented-in-source report flows and represents major addon areas without inventing connections between them.

Main entry points: [`custom-addons/report_xlsx/controllers/main.py`](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/report_xlsx/controllers/main.py) (XLSX report route), [`custom-addons/eh_board/controllers/main.py`](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/eh_board/controllers/main.py) (Dashboard export), [`custom-addons/report_xlsx/static/src/js/report/action_manager_report.esm.js`](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/report_xlsx/static/src/js/report/action_manager_report.esm.js) (XLSX download UI), [`custom-addons/query_deluxe/models/querydeluxe.py`](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/query_deluxe/models/querydeluxe.py) (SQL query tool)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_donations["Donation Operations"]
  node_home_service["Home service"]
  node_qurbani["Qurbani orders"]
  node_donation_import["Donation import"]
  node_advance_donation["Advance donations"]
  node_direct_deposit["Direct deposit<br/>[direct_deposit.py]"]
end

subgraph group_finance["Finance"]
  node_statement_import["Statement import"]
  node_sheet_parser["Sheet parser"]
  node_bank_reconcile["Bank reconciliation"]
  node_accounting["Accounting extensions<br/>[account_asset.py]"]
  node_budgeting["Analytic budgets<br/>[account_budget.py]"]
end

subgraph group_operations["Inventory And Procurement"]
  node_material_request["Material requests"]
  node_livestock["Livestock processing"]
end

subgraph group_insights["Dashboards And Reports"]
  node_ks_dashboard["Dashboard items"]
  node_country_bounds["Country bounds"]
  node_eh_dashboard["EH dashboard"]
  node_eh_export["Dashboard export<br/>[main.py]"]
  node_xlsx_ui["XLSX download UI"]
  node_xlsx_controller["XLSX report route<br/>[main.py]"]
  node_query_deluxe["SQL query tool<br/>[querydeluxe.py]"]
end

node_odoo_user(("Odoo user"))
node_postgres[("PostgreSQL")]

node_eh_export -->|"gets dashboard data"| node_eh_dashboard
node_xlsx_ui -->|"requests download"| node_xlsx_controller
node_xlsx_controller -->|"routes XLSX"| node_xlsx_controller
node_query_deluxe -->|"executes SQL"| node_postgres

click node_home_service "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_donation_home_service/models/donation_home_service.py"
click node_qurbani "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_qurbani/models/donation_home_service.py"
click node_donation_import "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_import_donation/wizards/api_donaiton_wizard.py"
click node_advance_donation "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_advance_donation/models/advance_donation.py"
click node_direct_deposit "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_direct_deposit/models/direct_deposit.py"
click node_statement_import "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/account_statement_import_file/wizard/account_statement_import.py"
click node_sheet_parser "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py"
click node_bank_reconcile "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_bank_reconciliation/models/bank_reconciliation_transaction.py"
click node_accounting "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/base_accounting_kit/models/account_asset.py"
click node_budgeting "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/base_account_budget/models/account_budget.py"
click node_material_request "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_material_request/models/material_request.py"
click node_livestock "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_livestock_slaugther/models/livestock_slaugther.py"
click node_ks_dashboard "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/ks_dashboard_ninja/models/ks_dashboard_ninja_items.py"
click node_country_bounds "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/ks_dashboard_ninja/models/ks_country_bounds.py"
click node_eh_dashboard "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/eh_board/models/eh_board_dashboard.py"
click node_eh_export "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/eh_board/controllers/main.py"
click node_xlsx_ui "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/report_xlsx/static/src/js/report/action_manager_report.esm.js"
click node_xlsx_controller "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/report_xlsx/controllers/main.py"
click node_query_deluxe "https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/query_deluxe/models/querydeluxe.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_home_service,node_qurbani,node_donation_import,node_advance_donation,node_direct_deposit,node_odoo_user toneBlue
class node_statement_import,node_sheet_parser,node_bank_reconcile,node_accounting,node_budgeting,node_postgres toneAmber
class node_material_request,node_livestock toneMint
class node_ks_dashboard,node_country_bounds,node_eh_dashboard,node_eh_export,node_xlsx_ui,node_xlsx_controller,node_query_deluxe toneRose
```

## Components

### Donation Operations

- [Home service](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_donation_home_service/models/donation_home_service.py): `custom-addons/bn_donation_home_service/models/donation_home_service.py`
- [Qurbani orders](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_qurbani/models/donation_home_service.py): `custom-addons/bn_qurbani/models/donation_home_service.py`
- [Donation import](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_import_donation/wizards/api_donaiton_wizard.py): `custom-addons/bn_import_donation/wizards/api_donaiton_wizard.py`
- [Advance donations](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_advance_donation/models/advance_donation.py): `custom-addons/bn_advance_donation/models/advance_donation.py`
- [Direct deposit](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_direct_deposit/models/direct_deposit.py): `custom-addons/bn_direct_deposit/models/direct_deposit.py`

### Finance

- [Statement import](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/account_statement_import_file/wizard/account_statement_import.py): `custom-addons/account_statement_import_file/wizard/account_statement_import.py`
- [Sheet parser](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py): `custom-addons/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py`
- [Bank reconciliation](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_bank_reconciliation/models/bank_reconciliation_transaction.py): `custom-addons/bn_bank_reconciliation/models/bank_reconciliation_transaction.py`
- [Accounting extensions](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/base_accounting_kit/models/account_asset.py): `custom-addons/base_accounting_kit/models/account_asset.py`
- [Analytic budgets](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/base_account_budget/models/account_budget.py): `custom-addons/base_account_budget/models/account_budget.py`

### Inventory And Procurement

- [Material requests](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_material_request/models/material_request.py): `custom-addons/bn_material_request/models/material_request.py`
- [Livestock processing](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/bn_livestock_slaugther/models/livestock_slaugther.py): `custom-addons/bn_livestock_slaugther/models/livestock_slaugther.py`

### Dashboards And Reports

- [Dashboard items](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/ks_dashboard_ninja/models/ks_dashboard_ninja_items.py): `custom-addons/ks_dashboard_ninja/models/ks_dashboard_ninja_items.py`
- [Country bounds](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/ks_dashboard_ninja/models/ks_country_bounds.py): `custom-addons/ks_dashboard_ninja/models/ks_country_bounds.py`
- [EH dashboard](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/eh_board/models/eh_board_dashboard.py): `custom-addons/eh_board/models/eh_board_dashboard.py`
- [Dashboard export](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/eh_board/controllers/main.py): `custom-addons/eh_board/controllers/main.py`
- [XLSX download UI](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/report_xlsx/static/src/js/report/action_manager_report.esm.js): `custom-addons/report_xlsx/static/src/js/report/action_manager_report.esm.js`
- [XLSX report route](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/report_xlsx/controllers/main.py): `custom-addons/report_xlsx/controllers/main.py`
- [SQL query tool](https://github.com/saylani-welfare-trust/swit-odoo/blob/main/custom-addons/query_deluxe/models/querydeluxe.py): `custom-addons/query_deluxe/models/querydeluxe.py`

### Other components

- **Odoo user**
- **PostgreSQL**

## Connections

- Dashboard export → EH dashboard: gets dashboard data (evidence: `custom-addons/eh_board/controllers/main.py`)
- XLSX download UI → XLSX report route: requests download (evidence: `custom-addons/report_xlsx/static/src/js/report/action_manager_report.esm.js`)
- XLSX report route → XLSX report route: routes XLSX (evidence: `custom-addons/report_xlsx/controllers/main.py`)
- SQL query tool → PostgreSQL: executes SQL (evidence: `custom-addons/query_deluxe/models/querydeluxe.py`)
