OdooWiki OCA HUB

Stock Move Line Auto Fill

stock_move_line_auto_fill folder_open OCA/stock-logistics-workflow open_in_new
Uncategorised License: AGPL-3

This module alows to auto fill quantities in picking operations and autoassignment lots quantities.

In Odoo, if you schedule to transfer 50 products and only receive 49, you have to change the quantity directly on the picking. As the quantity by default is 0 for each line, you have to write the received quantity on 49 lines.

In this module we have added a button that helps users to fill automatically the scheduled quantities. Then, the user can just change back the quantities for the product that hasn't been received yet.

Products with lots When working with lots, it's very uncomfortable to introduce the quantity, lot by lot, when transferring pickings from your warehouse (outgoing or internal).

This module automatically assigns the reserved quantity as the done one, so that you only have to change it in case of divergence, but having the possibility of transferring directly.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Automatically fills the done quantities in transfers with the reserved quantities, either automatically or with an AutoFill button, so users only adjust the lines that differ.

This module makes it easier to confirm transfers when the received quantity matches the reserved quantity. Instead of typing the done quantity on every line, Odoo can fill it for you.

  • On each operation type (for example Receipts, Delivery Orders, Internal Transfers) you get two new settings under an Automation group: "Auto fill operations" and "Avoid auto-assignment of lots".
  • If "Auto fill operations" is checked, the done quantity is filled automatically with the reserved quantity when the transfer is reserved. If it is unchecked, an "AutoFill" button appears on the transfer form, next to Validate, so users can fill the lines manually when they want.
  • The "AutoFill" button is only available when the transfer is in the ready/available state and has operation lines. If not, Odoo shows an error explaining that the transfer is not in the right state.
  • The button only fills lines that have a product, no done quantity yet, and (unless lots are avoided) no lot/serial number.
  • "Avoid auto-assignment of lots" is enabled by default and prevents automatic filling for lines that already have a lot or serial number, so users keep control of lot quantities.

It affects transfers (stock.picking), their operation lines, and the operation type configuration (stock.picking.type).

Depends on

stock

Required by other modules

Models and fields (3)
  • stock.move · extends an existing model
  • stock.picking · extends an existing modelauto_fill_operation (Auto fill operations), action_pack_op_auto_fill_allowed
  • stock.picking.type · extends an existing modelauto_fill_operation (Auto fill operations), avoid_lot_assignment (Avoid auto-assignment of lots)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0

To configure this module, you need to:

  • Make sure you have selected the proper removal strategy on your product categories.
  • Configure the product on the page "Inventory", field "Tracking" with one of these values: "By Unique Serial Number" or "By Lots" if you want autoassign lots.
  • Check in Operation type if you want auto assign quantities, by default if you want assign quantities done to reserved quantities you must push the button "Auto Fill" when the picking is in ready state and has move lines
  • Check in Operation type if you do not want auto assign lots quantities with "Avoid auto-assignment of lots".

Set options in operation types, you can set 'Auto fill operation' what make autoassignment button invisible and fill the quantities in operations for lines and 'Avoid Autoassignment Lots' what allow fill manually the lots quantities.

Products without tracking lots After confirming the picking, click on Auto fill operations button. The Operations matching the following conditions will be filled automatically:

  • The operation has not be processed (i.e qty_done == 0).
  • The operation has no package set (i.e package_id is empty).

Product with lots

  • Create an outgoing or an internal picking.
  • Include one product with lots and with enough stock.
  • Click on "Mark as Todo" button, and then on "Reserve".
  • Clicking on the icon with the three items bullet list on the "Operations" tab you will see that the quantities have been auto-assigned on the "Done" column.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.