How ihssane-oukhssane/odoo-sales-workflow works
This repository packages an Odoo 18 deployment setup and a custom sales-procurement addon. The main operator workflow is to provision an instance, start it, and access Odoo; the addon then extends sales confirmation with stock checks and purchasing, tracks fulfilment through invoicing and payment, and exposes configuration and dashboard views. The README documents deployment, PostgreSQL, and live-chat capabilities. Addon relationships below are based on sampled model code; view and cron internals were not sampled, so their links are limited to documented or explicitly configured relationships.
Main entry points: sale_order.py Sales order checks · stock_picking.py Stock operations · docker-compose.yml Odoo stack · procurement_config.py Procurement rules
Components 20
Deployment
- Instance setup
run.sh - Odoo stack
docker-compose.yml - Odoo 18
docker-compose.yml - PostgreSQL 17
docker-compose.yml - Live chat endpoint
docker-compose.yml - Odoo configuration
etc/odoo.conf
Sales procurement
- Sales order checks
addons/sale_auto_procurement/models/sale_order.py - Procurement rules
addons/sale_auto_procurement/models/procurement_config.py - Purchase orders
addons/sale_auto_procurement/models/sale_order.py - Stock operations
addons/sale_auto_procurement/models/stock_picking.py
Lifecycle tracking
- Invoice tracking
addons/sale_auto_procurement/models/account_move.py - Payment tracking
addons/sale_auto_procurement/models/account_payment.py - Delay alerts
addons/sale_auto_procurement/models/sale_order.py - Scheduled delay check
addons/sale_auto_procurement/data/cron.xml
Addon administration
- Odoo settings
addons/sale_auto_procurement/models/res_config_settings.py - Procurement dashboard
addons/sale_auto_procurement/views/dashboard.xml - Dashboard kanban
addons/sale_auto_procurement/views/dashboard_kanban.xml - Addon registration
addons/sale_auto_procurement/__manifest__.py
Other components
- Instance operator
- Sales user
Connections 19
- Instance operator → Instance setup: runs setup
README.md - Instance operator → Odoo stack: starts stack
README.md - Odoo stack → Odoo 18: runs service
- Odoo stack → PostgreSQL 17: runs service
- Instance operator → Odoo configuration: configures
README.md - Instance operator → Live chat endpoint: routes traffic
README.md - Sales user → Sales order checks: confirms order
- Sales order checks → Procurement rules: reads rules
addons/sale_auto_procurement/models/sale_order.py - Sales order checks → Purchase orders: creates RFQ
addons/sale_auto_procurement/models/sale_order.py - Stock operations → Sales order checks: updates order
addons/sale_auto_procurement/models/stock_picking.py - Stock operations → Procurement rules: reads thresholds
addons/sale_auto_procurement/models/stock_picking.py - Stock operations → Purchase orders: creates replenishment
addons/sale_auto_procurement/models/stock_picking.py - Invoice tracking → Sales order checks: updates invoice dates
addons/sale_auto_procurement/models/account_move.py - Payment tracking → Sales order checks: updates payment state
addons/sale_auto_procurement/models/account_payment.py - Scheduled delay check → Sales order checks: runs delay checks
- Sales order checks → Delay alerts: computes alerts
addons/sale_auto_procurement/models/sale_order.py - Odoo settings → Procurement rules: stores parameters
- Addon registration → Procurement dashboard: loads view
addons/sale_auto_procurement/__manifest__.py - Addon registration → Dashboard kanban: loads view
addons/sale_auto_procurement/__manifest__.py