Sync lot recalls from Odoo to your GS1 QR codes
When a lot goes wrong, you should not have to recall it in two places. A free Odoo module sends the recall from the lot form to DLCode. Any other system can send it with one API call.
DLCode · Updated · 5 min read
Why sync recalls from Odoo
If you track lots in Odoo, the lot form is where you know a lot is bad. Odoo lets you track products by lot or serial number, which helps when you manage recalls.
Your GS1 QR codes carry the same lot code. A shopper who scans a pack of that lot should see your notice, so you mark the lot as recalled in DLCode. With the sync, you do that in Odoo and DLCode follows.
Recalls need a paid pack. See how batch recalls work.
How it works
DLCode Lot Recalls is a free module on the Odoo Apps Store. Its technical name is dlcode_gs1_qr_recall. It works with Odoo 17.0 and 18.0. DLCode is not an official Odoo partner.
The module adds a DLCode recall section to each lot form. It has a Recalled checkbox and a Note for shoppers field. When you save the lot, DLCode turns the recall on or off for that one lot. If you change the note while the lot is recalled, the notice updates.
If DLCode cannot be reached or refuses the change, Odoo shows the error and does not save. Odoo and DLCode never disagree. DLCode refuses, for example, when the account has no paid pack, when the lot code is not valid, or when the product barcode is not a valid GTIN.
Other lots of the product keep working. Only the lot you changed is affected.
Set up in Odoo
You need the DLCode GS1 QR Codes app (dlcode_gs1_qr) with your DLCode API key saved in Settings. You also need Odoo Inventory with Lots & Serial Numbers turned on. See How to make GS1 QR codes for your Odoo products.
- Install DLCode GS1 QR Codes from the Odoo Apps Store, and add your DLCode API key in Settings.
- Install DLCode Lot Recalls from the Odoo Apps Store (Odoo 17 version).
- In Inventory, turn on Lots & Serial Numbers. In Odoo this is under Settings, then Traceability.
- Go to Inventory, then Products, then Lots/Serial Numbers, and open the lot.
- In the DLCode recall section, tick Recalled.
- Write the Note for shoppers, for example: Do not eat. Return it to the store for a full refund.
- Save.
- Open the product in DLCode and check that the lot shows as recalled.
Use lot codes that follow GS1 rules: up to 20 letters, digits or - . / _ with no spaces. To end the recall, untick Recalled and save.
Recall from other systems
Zapier, Make, other ERPs and your own scripts can send the same change to the DLCode API.
curl -X PUT https://dlcode.org/api/v1/products/04012345678901/lots/24B/recall \
-H "Authorization: Bearer dlc_live_..." \
-H "Content-Type: application/json" \
-d '{"recalled": true, "note": "Do not eat. Return it to the store for a full refund."}'The note is optional. Send recalled set to false to remove the recall from that lot. The call changes only that lot. Lots that are already recalled stay recalled. When you remove the last recalled lot, the recall ends.
The response is the product JSON, with recalled, recallLots and recallNote. You get 403 when the account has no paid pack, 400 for a bad lot or body, and 404 for an unknown GTIN. See the developer docs.
What shoppers see on the next scan
From the next scan, people who scan a pack of an affected lot see your notice. People who scan any other lot open the normal page.
You do not reprint anything. The QR code on the pack is the same.
The notice is not the official notification
The DLCode notice adds to your official notification. It does not replace it. Notify FDA or USDA FSIS, your retailers and your distributors as the rules require. The notice reaches people who scan a pack they already have.
Sources
- Product tracking · Odoo Documentation
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.