openepcis_connector_events_mrp: manufacturing events
The bridge to Manufacturing. A finished manufacturing order is reported as the one TransformationEvent it is: components in, goods out, and the claim that the second came from the first, which is the only thing in EPCIS that carries a chain of custody across a production step.
A movement says where goods are. A transformation says that some goods ceased to exist, that others came into being, and that the second came from the first. In EPCIS this link is the only thing that carries a claim across a production step; without it a chain of custody ends at the factory door, because the flour arrived and the bread left and no query connects the two.
Odoo knows both halves of a manufacturing order, the components consumed and the goods produced, and this bridge reports them together as one TransformationEvent.
| Module | openepcis_connector_events_mrp |
| Depends on | openepcis_connector_events, mrp |
| Installs | Automatically, once the events addon and Manufacturing are both present |
| Settings | None of its own; as for every event, the operation type's business step (commissioning by default) and the location's GLN apply |
| Source | openepcis-odoo · LGPL-3 |
One event per order
The event is queued when the order is marked done, after Odoo has finished processing it, since before that point the moves are incomplete and the output's lots may not exist yet. A single event carries the whole order with all its components:
{
"type": "TransformationEvent",
"inputQuantityList": [
{ "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609", "quantity": 10.0 }
],
"outputQuantityList": [
{ "epcClass": "https://id.gs1.org/01/09520001100017/10/GROUND-2609", "quantity": 40.0 }
],
"bizStep": "commissioning",
"disposition": "active",
"readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
"bizLocation": { "id": "https://id.gs1.org/414/9520001000010" }
}
Components and output are read the same way as the lines of a transfer, so a lot appears as the same epcClass whether it arrived on a lorry or came off a production line. The input of a transformation and the output of the receipt before it therefore name the same thing.
Two properties of the event follow from what a transformation means. It carries no action, the only event type without one, because "these came into being" and "these ceased to be" are both true at once and the field could express only one of them. And a transformation must be complete to be sent: inputs without outputs would assert that goods vanished, and outputs without inputs that they appeared from nowhere, so the bridge refuses to make either claim on your behalf.
As everywhere in the connector, reporting never interrupts the operation, and a plant keeps producing when the repository is unreachable. The event waits in the outbox like every other.