openepcis_connector_product_expiry: expiry dates as GS1 terms

A data-only bridge. Three mapping rows carry the dates Odoo's Expiration Dates app keeps on a lot: expiration date, best-before date, and an inactive sell-by row, into the per-instance catalog document under their GS1 names.

Odoo's Expiration Dates app (product_expiry) keeps three dates on a lot, and GS1 has a term for each of them. This addon consists of the three mapping rows that connect them and contains nothing else. The fields belong to product_expiry and the publishing is done by openepcis_connector_stock; the bridge exists so that a database without Expiration Dates carries no mapping rows for fields it does not have.

Moduleopenepcis_connector_product_expiry
Depends onopenepcis_connector_stock, product_expiry
InstallsAutomatically, once both are present
ContainsData only: no Python, no views
Sourceopenepcis-odoo · LGPL-3

The three rows

Odoo field on the lotGS1 termShipped
Expiration Date (expiration_date)expirationDateActive
Best before Date (use_date)bestBeforeDateActive
Removal Date (removal_date)sellByDateInactive

The first two agree with GS1 almost word for word. Odoo's expiration date is the date from which the goods may become dangerous, which is exactly GS1's definition of expirationDate, and Odoo itself labels the second field Best before.

The third row ships switched off. In Odoo the removal date is the day to take goods out of stock under first-expired-first-out, while GS1's sellByDate is the last day of sale at retail. The two are close, and whether they coincide is a judgement for the administrator who knows the business. If they mean the same thing for you, activate the row under Settings → Technical → OpenEPCIS → Field mapping.

Like every shipped mapping, these rows are starting points, marked so that an upgrade keeps your edits.

Last updated: