Repository
OCA/pos · module folder · Try on Runboat
Module version
0.1.0
Category
Point of sale
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/pos
Last tracking update
2026-08-07 08:23:00
Authors
Odoo Community Association (OCA), Invitu
Maintainers
Odoo Community Association (OCA), Invitu
Committers
Weblate, OCA-git-bot, oca-ci, Parvez Qureshi
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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_warning Integer
Public methods (0)

No public methods.

New fields (1)
  • age_warning Integer
    help='Choose the age max for the warning' readonly=False related='company_id.age_warning'
Public methods (0)

No public methods.