OdooWiki OCA HUB

Purchase Line Reassign

purchase_line_reassign folder_open OCA/purchase-workflow open_in_new
Purchase Management License: AGPL-3

Reassign purchase lines between orders

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you move selected purchase order lines from one purchase order to another using a small wizard, without retyping them.

This module adds a wizard that reassigns purchase order lines to a different purchase order. You select one or more lines on a purchase order and use the "Reassign Lines to Other Purchase" action, which opens a small form.

In that form you choose the target purchase order ("Move to purchase"). By default the wizard only offers orders from the same vendor, and it also blocks the action if the selected lines are already invoiced or belong to different vendors, showing a validation message. A checkbox "Allow selecting orders from other suppliers" widens the choice to orders from other vendors.

Pressing "Apply" moves the selected lines to the chosen purchase order; "Close" cancels. The target order list excludes orders that are done, cancelled or already fully invoiced.

It works on purchase order lines (purchase.order.line) and the wizard is available to all internal users. No menus, reports or scheduled jobs are added.

Depends on

purchase
Models and fields (1)
  • purchase.order.line.reassign.wiz · new modelpartner_id (Vendor), purchase_order_id (Move to purchase), allow_different_suppliers

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 15.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

To see this module working, you need to create a view to see the purchase order lines.

You can do it by creating an action that open them and adding a menu item to access.

To use this module, you need to:

  • Go to the purchase order lines new view.
  • Select the lines that we want to reassign.
  • Press the action Reassign Lines to Other Purchase.
  • Select the destination purchase order.

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.