Merge and Split Orders - Merge Sale Order, Merge Purchase Order, Split Quotation, Copy Order Lines
by Modvanta$ 6.98

Three quotations for one customer? Make them one. One quotation that should be two? Split it.
Customers change their minds, buyers raise an RFQ per request, and someone always ends up retyping lines into a new order. This module merges sales orders and purchase orders, splits them by line or by quantity, copies lines from one order to another and cleans up duplicate lines. It tells you plainly when a merge is not possible and why.
Written and supported by Modvanta - modvantaapps@gmail.com
Who it is for
Anyone who sells or buys in Odoo and has ever cleaned up orders by hand.
Sales teamsA customer sent three requests in one week. Merge the quotations into one order before you send it, with the customer reference of each one kept. | BuyersSeveral RFQs went out to the same vendor. Merge them into one purchase order, or split an RFQ when part of it should go to another vendor later. | Back officeCopy the lines of last month's order into a new one, duplicate a line in one click, and merge repeated lines on quotations, RFQs and draft invoices. |
Features, as they look on Odoo 19
Every screenshot was taken on a test database. The order screens were shot logged in as a plain sales user.
Merge sale orders from the list
Tick the quotations in the list and pick Actions -> Merge Orders. Choose a new order or one of the selected orders as the target, and whether the others are cancelled, deleted or left alone. Every line is listed with its order, price and stock on hand, and you can lower a quantity to take only part of a line: the source keeps the rest.

It says why a merge cannot happen
Before you press anything the wizard lists the problems: a cancelled or locked order, different customers, companies or currencies, or a confirmed order where something is already delivered or invoiced. Orders of different customers can still be merged if you tick the option and pick the customer.

The merged quotation
Identical lines were added together (4 + 2 standing desks became 6). The delivery note and the customer reference came across, the source numbers are in the Source Document field, and both sides of the merge get a chatter note with a link to the other.

Split a quotation by line or by quantity
Split / Extract opens the lines you ticked, or all of them if none are ticked. Here 4 of the 12 chairs and 4 monitor arms move to a new quotation. Split moves them; Extract copies them and leaves the original alone. On a confirmed order only the part that is not yet delivered or invoiced can be split.

The new quotation keeps its section
The moved lines keep the section they sat under (Lobby). The new quotation links back to the order it came from, and the original shows a Split Orders button.

Copy order lines from another order
Copy Lines From lets you search any order of the same company, pick the lines and quantities, and add them to the order you are on. Keep the source prices, or untick the box to have Odoo price them again for this customer or vendor.

Merge duplicate lines
Merge Duplicate Lines adds up lines with the same product, unit, price, discount, taxes and analytic distribution. Lines at another price stay apart. A copy button on each line duplicates it, and there is the same pair of tools on draft invoices and bills.

Merge purchase orders and RFQs
The same wizard works on requests for quotation and purchase orders. Here three RFQs of one vendor are merged with one section per RFQ, and the RFQs are deleted afterwards.

One RFQ, one section per source
Each source RFQ gets a section with its number and vendor reference, so the vendor still sees what belongs to which request. The vendor references are joined in the Vendor Reference field.

How it works
1 SelectTick orders in the Quotations or RFQ list, or use Sales -> Orders -> Merge Quotations and load every open quotation of one customer. | 2 CheckPick the target and the options. The wizard shows what will happen to each line and anything that blocks the merge. | 3 Merge or splitPress the button. You land on the result, and the chatter on every order involved says what happened. |
Settings and rules
Sales -> Configuration -> Settings and Purchase -> Configuration -> Settings, per company.
| Merge duplicate quotation lines on save and Merge duplicate RFQ lines on save - off by default. When on, identical lines are added together every time a quotation or RFQ is saved. | |
| Confirmed orders merge only into another confirmed order, and only while nothing on them is delivered, received or invoiced. Deliveries and receipts follow when Inventory is installed: the cancelled order's picking is cancelled and the target gets the moves. | |
| Delete is only offered to users who may delete orders. A sales user can still merge and cancel. | |
| Sales users, purchase users and billing users get the tools automatically. Everything runs with the user's own access rights and company rules. |

Questions
Does Odoo not merge RFQs already?
Odoo 19 can merge RFQs of one vendor into the oldest one and cancel the rest. It does not merge sales orders, confirmed orders, part quantities or orders of different vendors, and it has no delete, keep, section or chatter options. This module adds those and leaves Odoo's own Merge action where it is.
What happens to combo products?
Combo lines and their items move together and in full. The wizard refuses a part quantity on them and says so.
Can I merge orders in different currencies?
No. Orders must share the company and currency. The wizard lists the currencies it found.
Is the chatter history copied?
If you tick Copy chatter history, the comments and emails of each merged order are added to the merged order as one internal note per order. Nothing is sent to the customer.
Does it work on Odoo Online?
No, Odoo Online does not accept custom modules. It works on Odoo.sh and on your own server, Community or Enterprise.
Compatibility
Odoo 19.0CommunityEnterpriseOdoo.shOn premiseDepends on Sales and Purchase only. Inventory is optional. 66 automated tests cover merging, splitting, copying, duplicates, access rights and multi-company rules.
Stop retyping order lines
A question before you buy, or a merge case you want checked? Write to us.
Buy Now - $7Ask a Question| EMAIL modvantaapps@gmail.com | AUTHOR Modvanta | INCLUDED Source code + email support |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module