Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 11 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 17.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 2 models 0 views 0 HTTP endpoints

Description

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

  1. Select a customer in the POS interface.
  2. Click the "History" button to view their order history.
  3. Use the search and sort features to find relevant products.
  4. Select lines and add them to the current order as needed.

Technical Information

  • Compatible with Odoo 17.0
  • Developed following OCA module standards.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 0

No views found for this module.

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (0)

No new fields.

Public methods (1)
  • search_paid_orderline_ids(self, config_id, domain, limit, offset, orderby='id')
    @api.model

New fields (1)
  • date_order Datetime
    related='order_id.date_order' store=True
Public methods (0)

No public methods.