OdooWiki OCA HUB

POS Customer Age Warning

pos_customer_age_warning folder_open OCA/pos open_in_new
Point of sale License: AGPL-3

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.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

In the Point of Sale, when a customer is selected, their age is calculated from their birth date and compared to an age limit set in the POS settings. If the customer is at or below that age, their name is shown in red and an alert pops up.

This module adds an age verification step to the Point of Sale. A new field called "Age warning" is available in the Point of Sale settings, where you enter the maximum age that should trigger a warning. The value is stored on the company and loaded into the POS session.

When a cashier selects a customer in the POS, the system calculates the customer's age from their birth date. If the age is less than or equal to the configured limit, the customer's name appears in red on the order screen and an alert dialog pops up saying that the customer is under the specified age. The same check happens when a customer is identified by scanning a barcode, and when a customer's details are saved in the partner editor.

The customer's age is also displayed next to their name in the format "(25 y)". The module works together with the partner birth date feature, so customers must have a birth date filled in for the check to work. If no birth date is set, no warning is shown.

This is useful for businesses that must verify age before selling certain products, such as alcohol or tobacco, or before allowing entry to age-restricted areas.

Models and fields (2)
  • res.company · extends an existing modelage_warning
  • res.config.settings · extends an existing modelage_warning

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 17.0
  • Go to POS Settings
  • In the POS Interface section there is the Age Warning setting
  • Enter the age warning

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

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

No verified information in OCA: Installation.

info

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.