关于Odoo 8收货界面扫描包装条码自动统计数量功能的咨询
Yes, this functionality does exist in Odoo 8—you just need to properly configure your product's packaging hierarchy so the system recognizes the box and pack barcodes as valid units for your Pen product. Here's how to set it up and fix your scanning issue:
Step 1: Configure Product Packaging for Your Pen
Go to the product form for your "Pen" (with barcode 111122223333), then navigate to the Product Packaging tab (this relies on the Inventory module being enabled, so confirm that's turned on first):
- Add a new packaging entry for "包装A":
- Name: Pack A
- Barcode:
111122223350 - Quantity: 50 (this tells Odoo one Pack A contains 50 Pens)
- Add a second packaging entry for the full box:
- Name: Full Box
- Barcode:
111122221000 - Quantity: 1000 (since 20 Pack A units = 20*50 = 1000 Pens)
- Save the product configuration once both entries are added.
Step 2: Test Scanning in the Receipts Interface
Once configured, head to your Receipts (收货) screen:
- Make sure the focus is on the line item's quantity or barcode field (some Odoo 8 setups require the cursor to be in the right spot for scanning to trigger)
- Scan the box barcode
111122221000—the system should automatically populate the quantity as 1000 Pens, just like scanning the individual Pen barcode populates 1.
Why Your Current Setup Isn't Working
Right now, Odoo doesn't recognize the box or Pack A barcodes because they aren't linked to the Pen product via packaging configurations. The system only knows the individual Pen barcode by default, so scanning any other barcode won't trigger a quantity update until you map those barcodes to the product's packaging units.
Troubleshooting Tips
If scanning still doesn't work after configuration:
- Double-check that the barcodes are entered exactly as printed (no extra spaces, typos, or formatting errors)
- Confirm the Inventory module is fully enabled and your user has the necessary permissions to manage product packaging and receipts
- Ensure the receipt document is in a state where editing is allowed (e.g., not yet validated)
内容的提问来源于stack exchange,提问作者mohamed abdelbassat Salhi

