edi_record_metadata_oca
Provides the EDI framework with a mechanism to store, serialize, and inspect technical metadata tied to each exchange record.
Key Features
- edi.exchange.record: Stores JSON-like metadata in dedicated fields and offers helper methods so technical context stays attached to each exchange.
- edi.exchange.record form: Adds a debug-only Metadata tab that displays the stored metadata for troubleshooting.
- edi.exchange.consumer.mixin: Automatically writes metadata to the origin exchange record during record creation when an EDI framework action is running.
- edi.exchange.consumer.mixin: Provides overrideable hooks and helper methods so consumer models can choose which values to persist and later retrieve.
- serialization: Uses a custom JSON encoder to serialize metadata dictionaries, ensuring date and datetime objects are supported.