Metadata-Version: 2.1
Name: odoo-addon-pos_order_line_customer_history
Version: 17.0.1.0.0.4
Requires-Python: >=3.10
Requires-Dist: odoo>=17.0a,<17.1dev
Summary: Adds product in the customer history screen of POS
Home-page: https://github.com/OCA/pos
License: AGPL-3
Author: Serpent Consulting Services Pvt. Ltd., Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 17.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 3 - Alpha
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

================================
Point of Sale - Customer history
================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:cf0619aaad26e69a6ba7c02240b3b2f16fea78e9920d0266faebf01f3e41b154
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
    :target: https://odoo-community.org/page/development-status
    :alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
    :target: https://github.com/OCA/pos/tree/17.0/pos_order_line_customer_history
    :alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_order_line_customer_history
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=17.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

.. IMPORTANT::
   This is an alpha version, the data model and design can change at any time without warning.
   Only for development or testing purpose, do not use in production.
   `More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
   :local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/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 <https://github.com/OCA/pos/issues/new?body=module:%20pos_order_line_customer_history%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Serpent Consulting Services Pvt. Ltd.

Contributors
------------

- `SerpentCS <https://www.serpentcs.com>`__:

  - Parvez Qureshi <parvez.qureshi@serpentcs.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

.. |maintainer-Serpent Consulting Services Pvt. Ltd.| image:: https://github.com/Serpent Consulting Services Pvt. Ltd..png?size=40px
    :target: https://github.com/Serpent Consulting Services Pvt. Ltd.
    :alt: Serpent Consulting Services Pvt. Ltd.

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Serpent Consulting Services Pvt. Ltd.| 

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/17.0/pos_order_line_customer_history>`_ project on GitHub.

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