Correct a supplier file or a receipt
Core module For: Administrator, Compliance manager, Warehouse staff Checked on 18.0.0.2.0
Suppliers send corrected files, imports go on the wrong receipt, and receipts get cancelled. While a receipt is open, you can replace or cancel its supplier file. Once you validate it, its DSCSA lines are part of the record: you correct them with a new transfer, a return or a count, never by editing the done receipt. Abbreviations: EPCIS: Electronic Product Code Information Services; GTIN: Global Trade Item Number (see the glossary).
Replace a supplier file with a corrected one before validation
When a supplier sends a corrected EPCIS file for a shipment whose receipt is still open, import it on the same receipt. It replaces the earlier file, which stays on record as Superseded.
Who: Rx Tracking User or Manager
Requires: Rx Tracking (DSCSA). Works in Odoo Community and Enterprise.
Before you start:
- The receipt is open (Ready) and has the first file Awaiting Receipt. See Import the supplier's EPCIS file on the receipt.
- The corrected file (
.xml) is on your computer.
-
Go to Inventory ‣ Operations ‣ Receipts and open the receipt.
-
Select Import EPCIS.
Result: the Import Supplier EPCIS File dialog opens with the receipt in Receipt.
-
Next to EPCIS File, select Upload your file and choose the corrected file.
-
Select Import.
Result: the new file's form opens, Awaiting Receipt. Its chatter says "N package(s) expected from EPCIS file NEW-FILE (…). It replaces OLD-FILE." The receipt's chatter says the same.
-
In the breadcrumb, select the receipt, then select the EPCIS Files smart button.
Result: the list shows the corrected file Awaiting Receipt and the earlier one Superseded, in grey.

-
Open the Superseded file.
Result: its Superseded By field names the corrected file. The earlier file can still be downloaded next to EPCIS File.
Result: the receipt now expects what the corrected file announces. Records: a new Supplier EPCIS File (Awaiting Receipt) and the earlier one, Superseded and kept with its file. On the receipt:
- units the earlier file announced and you haven't scanned are replaced by the corrected file's units;
- units you already scanned stay scanned and are linked to the corrected file;
- a scanned unit the corrected file no longer lists stays on the receipt as a plain scan, and becomes an Extra discrepancy at validation unless the supplier corrects the file again;
- a Transaction Statement you recorded for the earlier file (DISC-06) also covers the corrected one.
Import the corrected file on the same receipt. A corrected file doesn't fill an expiry date that the earlier file left out (see the Known issue on DISC-02).
If it doesn't work
- There is no Import EPCIS button: the receipt is Done or cancelled. A file can be imported only on an open receipt; after validation, see Correct a receipt after validation.
- The corrected file is refused (another buyer, an unknown GTIN, a product not on the receipt, serials expected on another receipt): see Import the supplier's EPCIS file on the receipt and the import errors from Error: "The buyer in the file has GLN …" on, and Error: "These serials are already expected on another open receipt".
Next: Validate a DSCSA receipt
Cancel a supplier file, or a receipt that has scans or a file
Cancel an import that went on the wrong receipt or that the supplier withdrew, or cancel a whole receipt that won't arrive. Nothing is deleted: a cancelled file stays on record as Cancelled.
Who: Rx Tracking User or Manager to cancel an import. Inventory User (any level) to cancel a receipt.
Requires: Rx Tracking (DSCSA). Works in Odoo Community and Enterprise.
Before you start:
- The file is Awaiting Receipt: its receipt is still open.
Cancel the import only
-
Open the receipt, select the EPCIS Files smart button and open the file that is Awaiting Receipt.
-
Select Cancel Import.
Result: a Confirmation dialog asks "Remove the packages this file announced from the receipt?"
-
Select Ok.
Result: the file is Cancelled, and its chatter says "Import cancelled." The receipt's chatter says "EPCIS file FILE cancelled." and its Expected smart button is gone.
Result: the receipt no longer expects the file's units. Units you had already scanned stay on the receipt as plain scans. Receive the receipt without a file (Receive without a supplier EPCIS file) or import the right file (IN-03). Records: the file, Cancelled and kept with its file.
Cancel the receipt
-
Open the receipt and select Cancel.
Result: a Confirmation dialog asks "Are you sure you want to cancel this transfer?"
-
Select Ok.
Result: the receipt is Cancelled. Its file is Cancelled too, with "Receipt WH/IN/NNNNN cancelled." in its chatter.
Result: units scanned on the receipt are removed from the package ledger, and the units the file expected are dropped. Records: the cancelled receipt and its file, Cancelled and kept with its file.
When you cancel a backorder that still expects units of a file whose first part you already received, each unit it expected becomes a Missing discrepancy and its lot is quarantined (DISC-08). The backorder's chatter says "EPCIS reconciliation: 0 package(s) received." and "1 discrepancy(ies): 1 missing. Their lots are quarantined; resolve by DATE."
If it doesn't work
- There is no Cancel Import button: the file is Received, Superseded or Cancelled. Only a file Awaiting Receipt can be cancelled. See Error: "Only an import awaiting its receipt can be cancelled …".
- There is no Cancel Import or EPCIS Files button at all: you have no Rx Tracking right. Ask an Rx Tracking User or an administrator. See Error: "Only DSCSA users can …".
- There is no Delete for a supplier file, and a cancelled receipt that has a file can't be deleted: the file is kept as the record of what the supplier sent. See A supplier file, a discrepancy or its receipt can't be deleted.
Correct a receipt after validation
Once you validate a receipt, its DSCSA lines are history: the package ledger and the inbound DSCSA document record them. The software refuses to change the quantity, lot, locations or product of a done DSCSA line, or to add a DSCSA line to a done receipt. Correct the stock with a new record instead. Lines of other products stay editable as in standard Odoo.
Your procedure decides who approves a correction; the software requires that DSCSA units go through a new transfer, a return or a count.
Who: Rx Tracking User or Manager for the correcting records. Only an Inventory Administrator can unlock a done receipt, and even then the DSCSA lines are refused.
Requires: Rx Tracking (DSCSA). Works in Odoo Community and Enterprise.
Before you start:
- The receipt is Done, and you know what differs from what physically arrived.
-
Go to Inventory ‣ Operations ‣ Receipts and open the done receipt. Read the Operations tab and the DSCSA Packages tab to find the difference.
-
Choose the correction:
If Then more units of the order arrived after validation receive them on a new receipt: Receive without a supplier EPCIS file, or with the supplier's file (IN-03) too many units were received, or units must go back Return saleable product to the supplier units recorded here are physically gone, or others were found Count stock and record the units that are gone or Record units found in a count the lot number or expiry date was recorded wrong Correct a lot's number or expiry the supplier's file didn't match what arrived the receipt's discrepancies: Work a receiving discrepancy to resolution -
Perform the correction on its own page.
Result: the done receipt stays as it is. Records: the correcting record (a new receipt, a return, a count or a lot correction), with its own packages and, for a receipt with a supplier file or a return to the supplier, its own DSCSA document.
What is refused on a done receipt
An Inventory Administrator can unlock a done receipt from the ⚙ (Actions) menu, Lock/Unlock. On an unlocked receipt:
- changing the Quantity of a DSCSA line and saving is refused with "PRODUCT: this done DSCSA operation can't be edited (quantity, lot, locations or product): the package ledger and the DSCSA documents record it as validated. Use a return, a scrap or an inventory count instead.";
- Add a line with a DSCSA product and saving is refused with "PRODUCT can't be added to WH/IN/NNNNN: it is done, and DSCSA units must go through the checks of a validation (serials, trading partner, quarantine, documents). Put the extra units on a new transfer instead.";
- a line of a product that is not a DSCSA product (for example Adhesive Bandages) can be changed as in standard Odoo.
Select Discard changes in the error dialog to go back to the receipt as it was. The first message also names a scrap, but ⚙ (Actions) ‣ Scrap on the done receipt is refused for DSCSA units (known issue PF-W09-01): use a return or an inventory count from the table above.
If it doesn't work
- "PRODUCT: this done DSCSA operation can't be edited …": you changed a done DSCSA line. Discard the change and use one of the corrections above. See Error: "… this done DSCSA operation can't be edited …".
- "PRODUCT can't be added to …: it is done …": receive the extra units on a new receipt. See the same entry.