OdooWiki OCA HUB

Sale Line Returned Qty Mrp

sale_line_returned_qty_mrp folder_open OCA/stock-logistics-workflow open_in_new
Sales License: LGPL-3

Auto-install module needed to correctly compute the returned quantity of sale order lines for Kit BoM products.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Automatically corrects the returned quantity shown on sales order lines when the product is a kit (phantom bill of materials), including dropshipped kits.

This module is installed automatically and works in the background on sales orders. It does not add any new menu, screen or button; it only changes how the returned quantity of a sales order line is calculated.

When a product is sold as a kit (a phantom bill of materials, meaning the product is assembled from several components), Odoo normally has trouble knowing how many units the customer actually sent back. This module fixes that calculation.

  • It looks at the stock moves linked to the sales order line and finds the kit's bill of materials.
  • For normal deliveries, it counts the returned components and converts them back into the kit quantity, so the returned quantity on the line reflects reality.
  • For dropshipped kits (shipped directly by the supplier to the customer), it checks whether any completed move went somewhere other than the customer and whether returned moves exist; if so, the whole ordered quantity is marked as returned, otherwise zero.
  • If the product is not a kit, or if all moves were delivered to the customer, the returned quantity is set to zero.

The calculation refreshes automatically whenever the related stock moves change state, are scrapped, or change quantity or unit of measure. It extends the sale.order.line model and relies on the returned quantity feature from the sale_line_returned_qty module and on manufacturing data from mrp.

Models and fields (1)
  • sale.order.line · extends an existing model

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

Sources · Odoo 15.0

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

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.