The Odoo connector, step by step

One warehouse day walked through end to end: goods in, packed onto a pallet, shipped, part of it back, the rest ground into another article, and one report taken back, with the screen and the EPCIS event it produces side by side.

This page follows one warehouse day in Odoo across eleven screens and twelve events, and every event shown is copied from the outbox of the instance in the screenshots.

Sixty kilos of coffee arrive. Forty-eight of them are packed into two cases, and the cases go onto a pallet. One case comes off the pallet and ships, and a week later two kilos come back. The other case is emptied and ten kilos are ground into forty bags of a different article. Finally, the delivery turns out never to have happened.

All identifiers on this page are in the GS1 952 test range, which GS1 reserves for exactly this purpose, and every host is an example.org placeholder. The instance in the screenshots reaches no repository, so its events sit in the first state of the delivery ladder. The ladder and the meaning of each state are explained near the end of the page.

Two switches and a prefix

Nothing is reported until you switch it on. Two services are involved: the resolver holds master data and the repository holds events. They run on different hosts and are configured separately, and a token accepted by one may be refused by the other.

Figure 1: The connection, consisting of the resolver and the OIDC offline token Odoo authenticates with. The ERP keeps no password and no permanent access token, and access is revoked in Keycloak

The credential is an offline token, a refresh token from which Odoo obtains short-lived access tokens. You issue it in the OpenEPCIS web interface and paste it here, so Odoo never sees a password.

Figure 2: The event switch, the repository address, and the company prefix, which is only ever used for logistic units

The GS1 company prefix is what this installation forms identifiers from. A GTIN and an SSCC are both built the same way, from your prefix, a reference you assign and a check digit, and nobody hands them out to you.

They differ in what happens afterwards. A GTIN can be registered with GS1 and checked against the registry, so the platform can tell you whether a number is licensed to you and to whom. For SSCCs, GS1's validation service does not offer this yet, and no resolution rule can be created for one. An SSCC is therefore computed locally and used without external confirmation. Once GS1 supports it, the platform will pick it up through its configuration, with no new release needed.

A pallet needs its number before it can say what is on it, and that is the only purpose of the prefix field.

Where the why comes from

Odoo knows that a transfer is "incoming", but it has no notion that GS1 calls this receiving with the goods in_progress. Two fields on the operation type carry that meaning, pre-filled from Odoo's codes and the sequence prefix.

Figure 3: The two fields that decide the why, pre-filled and kept as they are once a human has chosen something else

Thanks to the sequence prefix, the steps of a multi-step route already come out distinguished:

Operation typeOdoo codeBusiness stepDisposition
Receiptsincomingreceivingin_progress
Pickinternalpickingin_progress
Packinternalpackingin_progress
Quality Controlinternalinspectingin_progress
Storageinternalstoringsellable_accessible
Internal Transfersinternalstoringin_progress
Delivery Ordersoutgoingshippingin_transit
Manufacturingmrp_operationcommissioningactive

A later pre-fill never overwrites a choice you have made. The third field, Incoming events, decides what a partner's event may do, and it stays at show only until you change it.

The same screen, a different meaning

To the stock module, a point-of-sale terminal looks exactly like a delivery: outgoing, shipping, in_transit. A small bridge addon records that it is a sale.

Figure 4: The same two fields on the operation type a till points at, now reading as a sale

What makes this operation type a sale is the fact that a till points at it; its name, "PoS Orders", is the same in both cases. Pointing a till at an operation type changes none of the codes the pre-fill is computed from, so the bridge reacts at the moment the till is configured. When the last till is pointed elsewhere, it hands the plain shipment meaning back. On the instance behind these screenshots the operation type read shipping / in_transit until a till was created, and retail_selling / retail_sold immediately afterwards.

Goods in

The receipt is validated in the usual way, and nothing about doing so is specific to EPCIS.

Figure 5: The receipt as any warehouse validates it. The connector adds a counter for its own events and leaves the rest of the workflow unchanged

{
  "type": "ObjectEvent",
  "eventTime": "2026-09-02T06:43:33.000Z",
  "eventTimeZoneOffset": "+00:00",
  "action": "OBSERVE",
  "bizStep": "receiving",
  "disposition": "in_progress",
  "quantityList": [
    {
      "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609",
      "quantity": 60.0
    }
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizTransactionList": [
    {
      "type": "po",
      "bizTransaction": "urn:epcglobal:cbv:bt:9520001000010:PO-2026-0917"
    }
  ],
  "sourceList": [
    {
      "type": "owning_party",
      "source": "https://id.gs1.org/414/9520001000027"
    }
  ]
}

Four aspects of this event go beyond copying fields from the transfer:

  • Lot-tracked goods go in the quantityList as an epcClass. /01/{gtin}/10/{lot} is an LGTIN, which denotes a set of items. Only serial-tracked goods land in the epcList.
  • The quantity carries no unit. EPCIS reads a missing uom as a piece count, and the quantity is part of the event hash.
  • The read point is an SGLN under AI 414, taken from the location. Without a GLN on the location path there is no event, and the reason is posted on the transfer.
  • The Origin field becomes the business transaction, so downstream readers can match on what the warehouse actually typed.

An event is not master data

The event names the lot whether or not anything has been published about it. Reporting events and publishing master data are two switches in two places.

Figure 6: The lot. Reporting events about it is one switch, publishing it to the catalog as a document of its own is another, and this one is off

The difference shows at scan time. The repository stores and finds the event either way, but a phone pointed at the lot reaches something only if an instance document has been published. A lot whose product is not in the catalog yet waits, says so on its form, and follows once the product lands.

Onto a pallet

Two cases and a pallet come into being, and each receives its SSCC at that moment, because a number handed out later could not be named by the events that came before it.

Figure 7: The pallet with the SSCC this installation minted from the company prefix, and the Unpack button, which matters later

Putting the coffee into a case is an aggregation. Its parentID is the case's SSCC, and its children are the goods:

{
  "type": "AggregationEvent",
  "parentID": "https://id.gs1.org/00/095200010000000058",
  "action": "ADD",
  "bizStep": "packing",
  "disposition": "in_progress",
  "childQuantityList": [
    {
      "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609",
      "quantity": 24.0
    }
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" }
}

The cases then go onto the pallet, and here the children are SSCCs of the cases themselves. This event exists only on Odoo 19, because Odoo 18 has no nesting to report:

{
  "type": "AggregationEvent",
  "parentID": "https://id.gs1.org/00/095200010000000041",
  "action": "ADD",
  "bizStep": "packing",
  "disposition": "in_progress",
  "childEPCs": [
    "https://id.gs1.org/00/095200010000000058",
    "https://id.gs1.org/00/095200010000000065"
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" }
}

A pallet of cases is the oldest hierarchy GS1 describes. Only the newer Odoo actually records it, and so only there can it be reported.

Both aggregations are standing statements. A movement is a fact about a moment, while an aggregation keeps answering a question: scan the outer label and the repository says what is underneath. It therefore has to be reported at both ends, or it goes on answering after it has stopped being true.

One case comes off, and ships

The customer ordered one case, so it leaves the pallet, which is the other end of that statement:

{
  "type": "AggregationEvent",
  "parentID": "https://id.gs1.org/00/095200010000000041",
  "action": "DELETE",
  "bizStep": "unpacking",
  "disposition": "in_progress",
  "childEPCs": ["https://id.gs1.org/00/095200010000000058"],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" }
}

The case then goes onto a delivery as a whole unit. A unit that merely travels has been neither packed nor unpacked, so no second packing event follows.

{
  "type": "ObjectEvent",
  "action": "OBSERVE",
  "bizStep": "shipping",
  "disposition": "in_transit",
  "quantityList": [
    {
      "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609",
      "quantity": 24.0
    }
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizTransactionList": [
    {
      "type": "desadv",
      "bizTransaction": "urn:epcglobal:cbv:bt:9520001000010:WH%2FOUT%2F00001"
    }
  ],
  "destinationList": [
    {
      "type": "owning_party",
      "destination": "https://id.gs1.org/414/9520001000034"
    }
  ]
}

The transfer had no purchase order reference of its own, so the despatch advice is named after the transfer, and the customer's GLN travels as the destination party.

Two kilos come back

A return is the only place where this connector emits a TransactionEvent.

Every event above already names its paperwork, so associating goods with an order needs no separate event. Ending that association does: goods coming back no longer belong to the shipment they went out on, and a receipt alone only says that they arrived.

{
  "type": "TransactionEvent",
  "action": "DELETE",
  "bizStep": "receiving",
  "disposition": "returned",
  "quantityList": [
    {
      "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609",
      "quantity": 2.0
    }
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizTransactionList": [
    {
      "type": "desadv",
      "bizTransaction": "urn:epcglobal:cbv:bt:9520001000010:WH%2FOUT%2F00001"
    }
  ]
}

The transaction it releases is the one the original transfer named. A return of goods whose transfer named no paperwork therefore releases nothing and reports nothing.

The other case is emptied

A case can be emptied in two ways. Picking goods off it in a delivery leaves move lines; pressing Unpack leaves none, because it simply clears the package on the quants. Both are reported, since an aggregation nobody withdrew would keep answering with goods that left weeks ago:

{
  "type": "AggregationEvent",
  "parentID": "https://id.gs1.org/00/095200010000000065",
  "action": "DELETE",
  "bizStep": "unpacking",
  "disposition": "in_progress",
  "childQuantityList": [
    {
      "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609",
      "quantity": 24.0
    }
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" }
}

Everything the event needs is read before the button runs. Afterwards the quants no longer name the unit, and both its contents and its location are gone.

Beans become ground coffee

Grinding is the one step where the identifiers going in differ from those coming out, which makes it a TransformationEvent. It is attached to the manufacturing order and lives in its own bridge addon, so a database without Manufacturing never loads it.

Figure 8: The manufacturing order, reported as one event for 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" }
}

It carries no action, the only event type without one. A transformation with only one side is refused: inputs with no outputs would assert that goods vanished.

Taking a report back

The delivery turns out never to have happened. Once an event is in a repository it stays there, and EPCIS withdraws it with an error declaration.

Figure 9: The original stays, greyed out and marked as corrected, and the withdrawal stands beside it

{
  "type": "ObjectEvent",
  "action": "OBSERVE",
  "bizStep": "shipping",
  "disposition": "in_transit",
  "quantityList": [
    {
      "epcClass": "https://id.gs1.org/01/09520001100000/10/ROAST-2609",
      "quantity": 24.0
    }
  ],
  "readPoint": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizLocation": { "id": "https://id.gs1.org/414/9520001000010" },
  "bizTransactionList": [
    {
      "type": "desadv",
      "bizTransaction": "urn:epcglobal:cbv:bt:9520001000010:WH%2FOUT%2F00001"
    }
  ],
  "destinationList": [
    {
      "type": "owning_party",
      "destination": "https://id.gs1.org/414/9520001000034"
    }
  ],
  "errorDeclaration": {
    "declarationTime": "2026-09-02T06:46:20.614Z",
    "reason": "did_not_occur"
  }
}

The withdrawal is the original event with a declaration attached. Declaration fields are excluded from the event hash, so the correction carries the same identity, and the repository knows which event is meant even though Odoo never learns the name the repository gave it.

Only did_not_occur is offered. incorrect_data accepts that the event occurred and disputes its description, which requires naming corrected events, and this connector does not create any.

The outbox, and the two identifiers

Reporting never causes a transfer to fail. Pressing Validate writes rows into an outbox, and a scheduled job delivers them.

Figure 10: One warehouse day in twelve rows, oldest at the bottom

Delivery gives two answers, kept apart. Accepted means the repository took the document, and Captured means it stored it. A queue that deleted its row on the 202 would report success for events rejected minutes later. After five attempts a row stops asking and marks the event as unconfirmed.

Opening a row shows both identifiers, which serve different purposes.

Figure 11: The nesting event with the state ladder, the expected event ID, the idempotency key, and the document as it will be sent

The expected event ID is the canonical CBV event hash, ni:///sha-256;<hex>?ver=CBV2.0, computed over everything the event asserts. Anyone holding the event can recompute it, so two companies describing the same observation arrive at the same identifier without any prior agreement. Odoo computes it to recognise its own events when they come back and sends the document without it; the repository computes it again when it stores the event.

The idempotency key is private bookkeeping. It is derived from the database, the transfer and the identifiers, is unique per company, and ensures that the same movement cannot enter the outbox twice. It never leaves Odoo.

Reproducing this

The instance in these screenshots is a throwaway: Odoo 19 with the six connector addons, seeded with exactly the day described above and pointed at hosts that do not exist. The images are generated by a script that drives a headless browser through the same screens in one run, so they can be renewed whenever the addons change.

The addons live in openepcis-odoo under LGPL-3, on two branches: 19.0 for the version shown here and 18.0 for the current Odoo long-term release. Both carry the same six addons and differ only where Odoo itself does. The one event on this page without a counterpart on 18.0 is the pallet of cases, because Odoo 18 has no nested units to report.

About the screenshots

The instance runs Odoo 19 without demo data, so that nothing on screen distracts from the day being walked through. Every identifier is in the GS1 952 test range, check digits included. The hosts are example.org placeholders and the offline token is a literal placeholder, so this instance publishes to nobody and never has. The delivery states were seeded locally. The two rows that read Captured were never captured by any repository; they were seeded that way because an error declaration can only be raised against a captured event, and the withdrawal is worth showing.

Last updated: