How orange-pos/orangeone works
OrangeONE is a Flutter inventory app for Android and iOS, using Riverpod, GoRouter, and Odoo JSON-RPC. The documented user flow is QR-based sign-in, then barcode lookup: known products open details and unknown barcodes prefill product creation. Product workflows also include price updates and editing product name and tax. The graph reflects README-documented architecture and capabilities; Dart implementation excerpts were not provided, so specific internal call relationships are not asserted.
Main entry points: app.dart App composition · lookup_product.dart Product lookup · odoo_auth_repository.dart Odoo auth repository · auth_remote_data_source.dart Auth remote source
Components 22
App shell
- App composition
lib/app/view/app.dart - Navigation
lib/app/router/app_router.dart - Initialization
lib/features/initialization/presentation/pages/initialization_page.dart
Authentication
- QR sign-in
lib/features/authentication/presentation/pages/qr_login_page.dart - QR authentication
lib/features/authentication/domain/use_cases/authenticate_with_qr.dart - Odoo auth repository
lib/features/authentication/data/repositories/odoo_auth_repository.dart - Auth remote source
lib/features/authentication/data/data_sources/auth_remote_data_source.dart
Inventory lookup
- Inventory home
lib/features/home/presentation/pages/home_page.dart - Barcode scanner
lib/features/home/presentation/pages/product_scanner_page.dart - Product lookup
lib/features/home/domain/use_cases/lookup_product.dart - Product repository
lib/features/home/data/repositories/odoo_product_repository.dart - Product remote source
lib/features/home/data/data_sources/product_remote_data_source.dart
Product management
- Product details
lib/features/products/presentation/pages/product_details_page.dart - Product creation
lib/features/products/presentation/pages/product_creation_page.dart - Create product operation
lib/features/products/domain/use_cases/create_product.dart - Product editing
lib/features/products/presentation/pages/product_edit_page.dart - Price update
lib/features/products/presentation/pages/product_price_update_page.dart
Shared infrastructure
- Secure session store
lib/core/storage/secret_store.dart - Environment configuration
lib/core/config/environment_loader.dart - JSON-RPC transport
lib/core/network/json_rpc_client.dart
Other components
- Mobile user
- Odoo
Connections 23
- Mobile user → App composition: opens
README.md - App composition → Initialization: initializes
README.md - App composition → Navigation: navigates
README.md - Mobile user → QR sign-in: signs in
README.md - QR sign-in → QR authentication: authenticates
README.md - QR authentication → Odoo auth repository: uses
README.md - Odoo auth repository → Auth remote source: accesses
README.md - Auth remote source → Odoo: uses JSON-RPC
README.md - Odoo auth repository → Secure session store: stores session
README.md - Mobile user → Inventory home: continues to
README.md - Inventory home → Barcode scanner: starts lookup
README.md - Barcode scanner → Product lookup: submits barcode
README.md - Product lookup → Product repository: requests product
README.md - Product repository → Product remote source: uses
README.md - Product remote source → Odoo: looks up product
README.md - Product lookup → Product details: opens match
README.md - Product lookup → Product creation: prefills unknown
README.md - Product creation → Create product operation: creates product
README.md - Mobile user → Product editing: edits product
README.md - Mobile user → Price update: updates price
README.md - App composition → Environment configuration: loads settings
README.md - Product remote source → JSON-RPC transport: transports requests
README.md - Auth remote source → JSON-RPC transport: transports requests
README.md