Coffee Export Data Model & Traceability Architecture
Technical specifications of database models, lot traceability tables, ECTA movement schemas, and export accounting relationships.
1. Overview & Business Value#
This comprehensive operational guide details the architecture, business workflows, configuration parameters, and execution steps for Coffee Export Data Model & Traceability Architecture within SmartERP.
Technical specifications of database models, lot traceability tables, ECTA movement schemas, and export accounting relationships.
{screenshot:coffee-data-model-and-traceability-overview-dashboard}
2. Prerequisites & Security Access Groups#
- Required Modules:
smarterp_commodity_export, smarterp_agri_traceability - Security Groups:
Export Logistics Officer(Technical ID:smarterp_export.group_export_user)Coffee Quality Lab Grader (Q-Grader)(Technical ID:smarterp_export.group_export_qa)Export Commercial Director(Technical ID:smarterp_export.group_export_manager)
- Master Data Dependencies: Coffee origination zones (Yirgacheffe, Sidama, Guji, Jimma, Harar), ECX contracts, washing stations, export container lots, and NBE 50/50 FX retention accounts.
3. Step-by-Step Configuration & Execution#
Step 1: Navigating to the Module Interface#
- Log into your SmartERP instance at
https://smarterp.et/odoo. - Open the main App Switcher (grid icon in the top-left corner).
- Select the Coffee Export app icon.
- From the top navigation bar, open Coffee Export → Origination → Lots / Grading / Contracts / Shipping Documents.
{screenshot:coffee-data-model-and-traceability-app-switcher-navigation}
Step 2: Creating and Parameterizing Records#
- Click the New button in the top-left control panel.
- Complete the mandatory fields in the record form:
- Export Contract Reference (Mandatory): Registered international sales contract number approved by ECTA
- Origin & Washing Station (Mandatory): Traceable regional washing or hulling station
- Grade & Screen Size (Mandatory): Specialty Grade 1/2 or Commercial Grade classification with moisture %
- Contract Quantity (Metric Tons) (Mandatory): Volume in standard 60 kg export jute bags
- Configure optional operational parameters and localized tags as required:
- Cupping Score & Sensory Profile (Optional): Certified Q-grader sensory score (acidity, body, floral notes)
- Port of Loading & Discharge (Optional): Inland dry port (Modjo) to discharge port (Djibouti/Rotterdam)
- NBE FX Retention Account (Optional): Designated commercial bank foreign exchange account
- Click the Save icon in the control bar to commit the record.
{screenshot:coffee-data-model-and-traceability-record-creation-form}
Step 3: Validating and Processing Transactions#
- State Transitions: Execute operational state progression (Origination Batch → Cupping & Grading → Contract Confirmed → Processing / Bagging → Customs Cleared → Shipped).
- Ledger & System Impact: Shipment confirmation recognizes export revenue in foreign currency (USD/EUR), debits export receivables, and computes statutory 50/50 NBE foreign exchange retention entries.
- Audit Verification: Automated recording of author ID, timestamp, and immutable revision history.
{screenshot:coffee-data-model-and-traceability-transaction-processing-state}
Relational Entity Architecture#
SmartERP Coffee Export connects origination stations, processing orders, cupping evaluations, and export accounting:
[agro-export-data-model]
Core Model Specifications#
1. Origination Lot: coffee.origination.lot#
Maintains farm-level origin data:
station_id(Many2one->coffee.washing.station).harvest_type(Selection):red_cherry,parchment,jenfel.gross_weight(Float),moisture_pct(Float).ecta_movement_permit(Char): Statutory movement certificate number.
2. Cupping Quality: coffee.cupping.evaluation#
Stores 100-point sensory evaluations:
lot_id(Many2one->stock.lot).aroma,flavor,aftertaste,acidity,body,balance,clean_cup.total_score(Float, computed).grade(Selection):q1,q2,g3,g4,g5,ug.cupper_id(Many2one->res.users, Q-Grader certified).
3. Export Contract: coffee.export.contract#
Manages international sales agreements:
partner_id(Many2one->res.partner): Foreign buyer.incoterm(Selection):fob,cif,cfr.ice_c_base_price(Float),differential(Float),final_unit_price(Float).lc_number(Char),nbe_permit_no(Char).
4. Advanced Configuration Points#
- Automated Actions & Scheduled Tasks (Crons):
Export: Track NBE 50/50 FX retention account expiration(smarterp_export.ir_cron_fx_retention): Runs weekly to monitor statutory 30-day conversion windowsTraceability: Monitor container transit milestones(smarterp_export.ir_cron_container_tracking): Runs daily to update Modjo dry port to Djibouti customs handoffs
- Custom Print Templates & Reports:
- ECTA Coffee Quality & Traceability Inspection Dossier
- Export Commercial Invoice, Packing List & Certificate of Origin
- Bole Cargo / Modjo Dry Port Multimodal Shipping Manifest
- NBE Foreign Exchange Retention & Commercial Bank Allocation Slip
- Multi-Company Rules: Record-level security isolation under Company 1 (
Ashewa Technology Solutions S.C.), preventing cross-company ledger leakage across parent and subsidiary legal entities.
5. Comprehensive Troubleshooting Matrix#
| Error Symptom / Exception | Probable Root Cause | Corrective Action / Resolution |
|---|---|---|
FX Retention Block: 50% ETB conversion window expired | Foreign proceeds not converted to local currency within mandatory 30-day window per NBE directives. | Contact commercial bank international banking department to process statutory conversion. |
Quality Grade Rejection: Moisture content exceeds 12.0% | Export sample failed ECTA moisture tolerance threshold. | Return lot to processing facility for further mechanical or sun drying prior to re-sampling. |
Customs Clearance Missing: Phytosanitary certificate not attached | Mandatory Ministry of Agriculture clearance document missing from shipment file. | Complete inspection sampling and attach approved certificate before filing Modjo customs manifest. |