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.
| Module | openepcis_connector_product_expiry |
| Depends on | openepcis_connector_stock, product_expiry |
| Installs | Automatically, once both are present |
| Contains | Data only: no Python, no views |
| Source | openepcis-odoo · LGPL-3 |
The three rows
| Odoo field on the lot | GS1 term | Shipped |
|---|---|---|
Expiration Date (expiration_date) | expirationDate | Active |
Best before Date (use_date) | bestBeforeDate | Active |
Removal Date (removal_date) | sellByDate | Inactive |
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.