Skip to content

Commit d348de1

Browse files
committed
[17.0][ADD] Add pos_partner_birthdate_warning module
1 parent dfa4435 commit d348de1

File tree

13 files changed

+577
-0
lines changed

13 files changed

+577
-0
lines changed
+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
=============================
2+
POS Partner Birthdate Warning
3+
=============================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a7e57dda136a17f1f09419221c8e5b52523d147b935e8575002b803e24787aca
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
20+
:target: https://github.com/OCA/pos/tree/17.0/pos_partner_birthdate_warning
21+
:alt: OCA/pos
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_partner_birthdate_warning
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Usage
39+
=====
40+
41+
Open the POS interface and if the age warning setting apply to the
42+
customer, the customer name will appear in red color.
43+
44+
Bug Tracker
45+
===========
46+
47+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
48+
In case of trouble, please check there if your issue has already been reported.
49+
If you spotted it first, help us to smash it by providing a detailed and welcomed
50+
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_partner_birthdate_warning%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
51+
52+
Do not contact contributors directly about support or help with technical issues.
53+
54+
Credits
55+
=======
56+
57+
Authors
58+
-------
59+
60+
* Invitu
61+
62+
Contributors
63+
------------
64+
65+
- Vehiana Tepuhiarii <[email protected]>
66+
67+
Maintainers
68+
-----------
69+
70+
This module is maintained by the OCA.
71+
72+
.. image:: https://odoo-community.org/logo.png
73+
:alt: Odoo Community Association
74+
:target: https://odoo-community.org
75+
76+
OCA, or the Odoo Community Association, is a nonprofit organization whose
77+
mission is to support the collaborative development of Odoo features and
78+
promote its widespread use.
79+
80+
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/17.0/pos_partner_birthdate_warning>`_ project on GitHub.
81+
82+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2025 Invitu SARL
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "POS Partner Birthdate Warning",
5+
"summary": "Display customer's age in POS interface according to the age setting",
6+
"version": "17.0.0.1.0",
7+
"category": "Point of sale",
8+
"website": "https://github.com/OCA/pos",
9+
"author": "Invitu, Odoo Community Association (OCA)",
10+
"license": "AGPL-3",
11+
"installable": True,
12+
"depends": ["point_of_sale", "pos_partner_birthdate"],
13+
"data": [
14+
"views/res_config_settings.xml",
15+
],
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import res_config_settings
2+
from . import res_company
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from odoo import fields, models
2+
3+
4+
class ResCompany(models.Model):
5+
_inherit = "res.company"
6+
7+
age_warning = fields.Integer()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 Invitu SARL
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class ResConfigSettings(models.TransientModel):
8+
_inherit = "res.config.settings"
9+
10+
age_warning = fields.Integer(
11+
related="company_id.age_warning",
12+
readonly=False,
13+
help="Choose the age max for the warning",
14+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1. Go to POS Settings
2+
2. In the POS Interface section there is the Age Warning setting
3+
3. Enter the age warning
4+
5+
The warning will appear for the customer with this age or younger.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Vehiana Tepuhiarii \<<[email protected]>\>

pos_partner_birthdate_warning/readme/DESCRIPTION.md

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Open the POS interface and if the age warning setting apply to the customer, the customer name will appear in red color.

0 commit comments

Comments
 (0)