Skip to main content
Odoo Community Association

Purchase Order Line Merge

Beta License: AGPL-3 OCA/purchase-workflow Translate me on Weblate Try me on Runboat

This module allows users to select multiple purchase order lines from different purchase orders and merge them into a single new purchase order.

Unlike purchase_merge which works at the order level, this module operates at the line level, giving more granular control over which specific lines to consolidate.

Key features:

  • Lines with the same product, unit price, unit of measure, and taxes are automatically grouped into a single line on the resulting purchase order.

  • The default quantity to merge considers both invoiced and received amounts, defaulting to the available (uninvoiced/unreceived) quantity.

  • The unit price is editable in the wizard, allowing price adjustments before creating the new order.

  • Partial merges are supported: the remaining quantity stays on the original order.

  • Orders that reach zero amount after the merge are automatically cancelled.

This module also adds the Qty Invoiced and Qty Received columns to the Purchase Order Lines list view for better visibility.

Table of contents

Usage

  1. Go to Purchase > Orders > Purchase Order Lines.

  2. Select the lines you want to merge.

  3. Click Action > Merge into Purchase Order.

  4. In the wizard, review or change the vendor and order date.

  5. Adjust the quantities and/or unit prices if needed. The default quantity is the available amount (original minus the greater of invoiced or received).

  6. Click Merge Lines to create the new purchase order.

The original purchase order lines will have their quantities reduced by the merged amount. If all lines of a purchase order reach zero, the order is automatically cancelled.

Validations will prevent merging lines from different currencies, different warehouses, or cancelled/locked orders.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • SpearHead

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/purchase-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo-addon-purchase-order-line-merge 18.0.1.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-purchase-order-line-merge 18.0.1.0.0.2
File Interpreter ABI Platform
odoo_addon_purchase_order_line_merge-18.0.1.0.0.2-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_purchase_order_line_merge-18.0.1.0.0.2-py3-none-any.whl

Download URL odoo_addon_purchase_order_line_merge-18.0.1.0.0.2-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f0a534db6badd395268fb3f1ce661e682ecb5af39a61958541c2c5b62f435e5
BLAKE2b-256 checksum
How to use checksums
89cccf1dfd90b87dc4abe9bf384e07debe46b073f82fb7a2ea63836dca76a9a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

18.0.1.0.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page