OdooWiki OCA HUB

Stock Weighing Owner Restriction

stock_weighing_owner_restriction folder_open OCA/stock-weighing open_in_new
Inventory License: AGPL-3

Apply the Stock Owner Restriction rules configured on the operation type to the weighing assistant: the manual stock (quant) picker and the lot picker only offer quants/lots the user is actually allowed to pick from.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When using the weighing wizard, the manual stock and lot pickers only show quantities and lots the user is allowed to pick according to the operation type's owner restriction rules.

This module extends the weighing wizard so that the owner restriction rules configured on the operation type are respected when the user selects stock manually.

  • The wizard now reads the owner restriction setting and the restricted owner from the related stock move, and uses them to filter what can be chosen.
  • The manual quantity picker (quant_id) is limited to quantities that match the allowed owner: only unassigned stock, only the picking partner's stock, or either of the two, depending on the rule.
  • The lot picker is filtered in the same way, so lots whose quantities belong to a disallowed owner are not offered.
  • A computed list of available quantities is added to the wizard form and used as the domain of the quantity field.

It touches the weighing.wizard model and the stock.quant model, and modifies the weighing wizard form view. No new menus or reports are added; the change appears directly inside the existing weighing wizard screen.

Models and fields (1)
  • weighing.wizard · extends an existing modelowner_restriction, available_quant_ids, restricted_owner_id

Text generated by AI (DeepSeek) from reading the Odoo 18.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 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/stock-weighing.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Configure the Owner restriction field on an Operation Type (provided by the stock_owner_restriction module).
  • Open the weighing wizard for a move of that operation type.
  • If the move shows the manual stock picker (Pick From), only quants matching the configured owner restriction are selectable.
  • If the product is tracked and no stock is manually picked, only lots having at least one quant matching the owner restriction are offered. A lot having both owned and unowned quants is still offered, since the restriction is applied at the quant level when the operation is reserved.

No verified information in OCA: Installation, Configuration.

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.