Kiến trúc Odoo 17¶
Mô hình 3 tầng¶
| Tầng | Thành phần | Vai trò |
|---|---|---|
| Presentation | Web client (OWL/JS), Website | Giao diện trình duyệt |
| Business | Python ORM, modules (addons) | Logic nghiệp vụ, workflow |
| Data | PostgreSQL | Lưu trữ bản ghi, transaction |
Module (Addon)¶
Mỗi app (CRM, Stock…) là một hoặc nhiều module trong thư mục addons/:
__manifest__.py— metadata, dependencymodels/— Python ORMviews/— XML UIsecurity/— groups, access rightsdata/— XML/CSV khởi tạo
Multi-database¶
Một process Odoo phục vụ nhiều database — mỗi công ty/khách hàng thường một DB riêng (on-premise).
Worker & cron¶
- HTTP workers — xử lý request web
- Cron jobs —
ir.cronchạy tác vụ định kỳ (email queue, reorder rules…) - Longpolling / bus — Discuss, notification (có thể cần gevent hoặc proxy riêng)
Xem: Triển khai | Cấu trúc module