Metadata-Version: 2.1
Name: odoo-addon-pos_customer_age_warning
Version: 17.0.0.1.0.2
Requires-Python: >=3.10
Requires-Dist: odoo-addon-pos_partner_birthdate>=17.0dev,<17.1dev
Requires-Dist: odoo>=17.0a,<17.1dev
Summary: Display customer's age in POS interface according to the age setting
Home-page: https://github.com/OCA/pos
License: AGPL-3
Author: Invitu, 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

========================
POS Customer Age Warning
========================

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

.. |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_customer_age_warning
    :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_customer_age_warning
    :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|

This module enhances Odoo's Point of Sale (POS) by introducing an age
verification system. When a customer is selected, their age (based on
their date of birth) is checked against the predefined **"Age Warning"**
threshold set in the POS configuration.

If the customer's age is **less than or equal** to this threshold, their
name will be displayed in **red** on the POS interface to alert the
cashier.

Use Cases
---------

**Case 1: Alcohol Sales**
~~~~~~~~~~~~~~~~~~~~~~~~~

- **"Age Warning" threshold set to 18 years**.
- A customer born on **June 5, 2010**, is selected in **March 2025**.
- **Age**: 2025 - 2010 = **14 years old**.
- **Result**: Their name appears in **red**, warning the cashier.

**Case 2: Customer is of Legal Age**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- **"Age Warning" threshold set to 18 years**.
- A customer born on **February 2, 2003**, is selected in **March
  2025**.
- **Age**: 2025 - 2003 = **22 years old**.
- **Result**: No warning, as the customer is above the age limit.

**Case 3: Gaming Center (No entry for under 16s)**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- **"Age Warning" threshold set to 16 years**.
- A customer born on **July 15, 2009**, is selected in **March 2025**.
- **Age**: 2025 - 2009 = **15 years old** (birthday in July).
- **Result**: Their name appears in **red** because they are not yet 16.

.. 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:

Configuration
=============

1. Go to POS Settings
2. In the POS Interface section there is the Age Warning setting
3. Enter the age warning

The warning will appear in POS interface for the customer with this age
or younger.

Usage
=====

Open the POS interface and if the age warning setting apply to the
customer, the customer's name will appear in red color.

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_customer_age_warning%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
-------

* Invitu

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

- Vehiana Tepuhiarii <vehi@invitu.com>
- `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.

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

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