| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 191 |
| Technical Name |
xpt_order_history |
| License | OPL-1 |
| Website | https://xpedyt.pl |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 191 |
| Technical Name |
xpt_order_history |
| License | OPL-1 |
| Website | https://xpedyt.pl |
Order History
Browse a customer's past orders and reorder any lines directly on the current sale order.
Overview
Repeat orders are common, but recreating them by hand is slow and error-prone. The salesperson has to remember what the customer bought last time, search through old orders, copy the products one by one, and then manually look up and re-enter the correct prices and discounts that were agreed previously.
Order History eliminates this friction. A single button in the sale order header opens a wizard listing every confirmed order line this customer has ever placed. The salesperson ticks the lines to repeat and clicks Add Lines — the selected products, quantities, unit prices, and discounts are copied into the current order instantly, exactly as they were on the original sale.
Order History button on the sale order
Once the module is installed, an Order History button (with a history icon) appears in the header of every sale order form. The button is only visible when a customer is selected, and it can be clicked at any point while the order is being drafted — before or after lines have already been added.
No configuration is needed. The button is always there, ready to use.
Per-customer history wizard
Clicking the button opens a dialog that loads all previous confirmed sale order lines for the same customer. The list is sorted by order date, newest first, so the most recent purchases are always at the top.
Each line shows:
- Sale order — the SO number of the original order
- Product — the product that was sold
- Quantity and unit of measure
- Unit price — the exact price from the original sale
- Discount (%) — if a discount was applied
The wizard automatically filters out downpayment lines, delivery fee lines, and lines for archived products, so the list stays clean and actionable.
Select lines and add to the current order
Each row in the wizard has a Select checkbox. The salesperson ticks any combination of lines — a single product from last month, several items from an older order, or an entire repeat of the most recent sale — and clicks Add Lines.
The selected lines are immediately created on the current sale order. The wizard closes and the salesperson can continue editing the order as normal.
Historical prices and discounts preserved
When lines are added from the history, the unit price is set to the exact value from the original sale — bypassing any pricelist recalculation. If the original line had a discount, that discount is also carried over.
This is the key guarantee the module provides: the customer gets the same commercial conditions they had before, without the salesperson having to look them up or override the price manually.
Customer-level lookup
The history is loaded for the specific partner selected on the current sale order. This gives the salesperson a precise view of what this customer ordered, without mixing in orders from other contacts or companies.
Requirements
- Odoo 19
- Module dependency:
sale
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