OdooWiki OCA HUB

Lock Done Quantity Changes in Stock Moves

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

This module can limit the ability to modify the done quantity of stock moves once they are validated, configurable per company through the settings.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a company setting that prevents users from changing the done quantity on already validated stock moves, unless they belong to a special permission group.

This module adds an option in Inventory settings called "Limit Updates to Done Quantity After Validation". When enabled for a company, the done quantity of a stock move line that is already in the done state can no longer be edited by ordinary users.

  • The setting is stored per company and can be turned on or off from the Inventory configuration screen.
  • A new user group, "Inventory: Edit done quantity of done stock moves", is created. Only users in this group are allowed to change the done quantity after validation.
  • If a user without this group tries to change the done quantity on a validated move, Odoo blocks the change and shows an error message.
  • If the move line is locked, even users with the group cannot change the done quantity until the move is unlocked, and an error explains this.
  • The rule only applies when the company setting is active and the move line is already done; otherwise editing behaves as before.

The module touches the stock move line model, the company settings, and the Inventory settings screen. It does not add new menus or reports.

Depends on

stock
Models and fields (2)
  • res.company · extends an existing modellock_qty_done (Limit Updates to Done Quantity After Validation)
  • res.config.settings · extends an existing modellock_qty_done (Limit Updates to Done Quantity After Validation)

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

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

terminal Installation and usage

OCA documentation · Odoo 16.0

Update the following settings:

  • Go to Inventory > Settings and select the 'Limit Updates to Done Quantity After Validation' option to enable the restriction. This should be done for each company.
  • Add users who are allowed to edit the done quantity for done moves to the group 'Can edit done quantity for done stock moves'.

No verified information in OCA: Installation, Usage.

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.