POS Customer Age Warning
pos_customer_age_warning · OCA/pos
Health
55/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 11 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
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.05 MB
Module directory on disk
Code analysis
0 migration notes
3 models
1 view
0 HTTP endpoints
Description
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_res_config_settings_birthdate_warning |
res.config.settings | form | Inherits point_of_sale.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
age_warningInteger
No public methods.
New fields (1)
-
age_warningIntegerhelp='Choose the age max for the warning'readonly=Falserelated='company_id.age_warning'
No public methods.