POS Order Line Customer History
This module adds a feature in the Point of Sale (POS) interface to allow users to view the sales history of a selected customer and reuse past order lines in new orders.
Features
- Adds a "History" button above the customer details on the POS screen.
- When clicked, opens a new view showing past pos.order.line records for the selected customer.
- If no customer is selected, a popup is displayed with the message: > "You must select a customer first"
History View
- Displays a list of past order lines for the selected customer.
- Ordered by most recent first.
- Shown fields:
- Date
- Product
- Quantity
- Discount
- Price Unit
- Total
Functionalities
- Sortable Data: Users can sort the list by selecting from a dropdown with the following options:
- Date ASC
- Date DESC
- Product ASC
- Product DESC
- Price Unit ASC
- Price Unit DESC
- Qty ASC
- Qty DESC
- Total ASC
- Total DESC
- Search Bar:
- Filter by product name or barcode
- Filter by date
- Line Selection:
- Select one or more lines from the list.
- Add selected products and their quantities to the current POS order.
- Note: Discounts and prices are not copied, only product and quantity are reused.
Usage
- Select a customer in the POS interface.
- Click the "History" button to view their order history.
- Use the search and sort features to find relevant products.
- Select lines and add them to the current order as needed.
Technical Information
- Compatible with Odoo 17.0
- Developed following OCA module standards.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Adds a History button in the Point of Sale that shows a customer's past purchased products and lets cashiers add those products to the current order with one click.
In the Point of Sale screen, a History button appears above the customer area once a customer is selected on the current order. Clicking it opens a dedicated customer history screen listing past order lines for that customer.
The list shows the date, product, quantity, discount, unit price and total of each past line, and only includes lines from orders that are not draft or cancelled. Users can search by product, barcode or date, and sort the list by date, product, quantity, unit price or total, in ascending or descending order. Results are paginated.
Each line has a cart icon (or an Add button on small screens) that adds that product to the current order with quantity 1. The right side of the screen shows the current order and its lines, with a payment action available. A Back button returns to the previous screen.
The module extends pos.order with a method used to search paid order lines and adds a stored date_order field on pos.order.line so the order date can be displayed and sorted. It also loads any products from history that are not already available in the POS session.
Depends on
Models and fields (2)
- pos.order · extends an existing model
- pos.order.line · extends an existing modeldate_order
Text generated by AI (DeepSeek) from reading the Odoo 17.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/pos.
terminal Installation and usage
No verified informationInstallation 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.
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.