Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Inventory
  3. Stock Barcode - Free Serial Location Pick v 17.0
  4. Sales Conditions FAQ

Stock Barcode - Free Serial Location Pick

by SJR Nebula https://sjr.ie
Odoo
v 17.0 Third Party
Download for v 17.0 Deploy on Odoo.sh
This module requires Odoo Enterprise Edition.
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Barcode (stock_barcode)
• Inventory (stock)
• Discuss (mail)
Lines of code 92
Technical Name stock_barcode_free_serial_location
LicenseLGPL-3
Websitehttps://sjr.ie
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Barcode (stock_barcode)
• Inventory (stock)
• Discuss (mail)
Lines of code 92
Technical Name stock_barcode_free_serial_location
LicenseLGPL-3
Websitehttps://sjr.ie

Stock Barcode - Free Serial Location Pick

License: LGPL-3

When using the Odoo Barcode app for picking operations with serial-tracked products, Odoo reserves stock from a specific source location (e.g. LocA). If an operator physically picks the item from a different location (e.g. LocB), Odoo does not update the source location on the move line, resulting in:

  • Negative stock (-1) at the physically-picked location (LocB)
  • Phantom stock (+1) remaining at the reserved location (LocA)

This module eliminates that friction. It automatically corrects source locations at validation time and enforces reserved quantities in real time during scanning — preventing both stock integrity issues and over-picking, for all product tracking types.

Key Benefit: Warehouse operators can scan any serial from any location without worrying about what Odoo originally reserved. The correct source location is resolved automatically at validation. Over-scanning is blocked immediately with a clear notification — no extra steps, no manual overrides, no warehouse friction.

Features

  • Auto-corrects source location for serial-tracked move lines at validation time — operators never need to manually override the source location
  • Smart serial line matching — when a serial is scanned, the barcode model finds the most appropriate unstarted reserved line rather than always creating a new one, preserving reservation integrity
  • Reserved quantity enforcement — prevents scanning more units than reserved for any product type (serial, lot, or untracked), with an immediate in-app danger notification
  • No extra steps required from warehouse operators — fully transparent to users
  • No UI changes — works silently in the background
  • Safe fallback: skips lines where the serial cannot be found in stock; Odoo's standard validation error surfaces these naturally

Installation

  1. Copy the stock_barcode_free_serial_location folder to your Odoo addons directory.
  2. Update the apps list in Odoo (Settings > Apps > Update Apps List).
  3. Search for "Stock Barcode - Free Serial Location Pick" and install it.

Dependency: Requires the stock_barcode module (standard Odoo Barcode app).

Configuration

No configuration is required. The module works automatically for all picking operations once installed.

Usage

Warehouse operators use the Barcode app exactly as before:

  1. 1Open a picking in the Barcode app.
  2. 2Scan any serial number — regardless of which location Odoo originally reserved it from.
  3. 3If you attempt to scan more units than the picking has reserved for a product, a danger notification is shown immediately and the scan is blocked.
  4. 4Press Validate.

At validation, the module queries stock.quant to find where each scanned serial has positive stock and updates the move line's source location before Odoo records the stock move.

Note: The source location correction happens at validation time. The Barcode app UI will still display the originally reserved location during scanning — this is cosmetic only and does not affect the final stock move recorded.

Technical Notes

The module operates across two layers:

Python (server-side)

  • stock.move.line.fix_serial_source_location() — queries stock.quant for the actual positive internal quant of each serial and updates location_id if it differs from the reserved location.
  • stock.picking.button_validate() — collects all done serial-tracked lines and calls the helper before delegating to the standard validation flow.

JavaScript (client-side)

  • BarcodePickingModel.createNewLine() (patch) — for serial-tracked products, finds an unstarted reserved line for that product and redirects to updateLine() on it instead of creating a new one. For all product types, checks whether the total qty_done would exceed the total reserved_uom_qty; if so, shows a danger notification and aborts the scan.
  • BarcodePickingModel.updateLine() (patch) — for all product types, checks whether the incoming qty_done value would push the total done quantity over the total reserved. If so, shows a danger notification and aborts the update. This covers subsequent scans of the same product where an existing line is incremented rather than a new one created.

Edge Cases

Scenario Behaviour
Serial in transit on another picking Quant still shows original location; source location corrected to that location.
Serial does not exist in stock Quant query returns nothing; location unchanged — standard Odoo error raised on validate.
Scan exceeds reserved quantity Danger notification shown immediately; scan blocked for all product types (serial, lot, untracked).
Lot / untracked products Source location fix skipped at validation; reserved quantity guard still applies during scanning.
Source location already correct No write performed.
Product has no reservation Quantity guard not applied — no reserved qty to enforce against.

Support

For support, please contact SJR Nebula:

  • Website: https://sjr.ie
  • Email: info@sjr.ie

Credits

Authors

  • SJR Nebula

Contributors

  • John Ashurst

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with