Skip to content

Commit eb1dc9d

Browse files
committed
Merge PR #1538 into 19.0
Signed-off-by ivantodorovich
2 parents d1c42a8 + 2869ccd commit eb1dc9d

20 files changed

Lines changed: 772 additions & 0 deletions

pos_partner_birthdate/README.rst

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
=========================================
6+
Point of Sale - Partner contact birthdate
7+
=========================================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:8c580c54305cd60e4f029294b6f9d0a7e4a85a726228d0c53663e42b13cafe01
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
24+
:target: https://github.com/OCA/pos/tree/19.0/pos_partner_birthdate
25+
:alt: OCA/pos
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_partner_birthdate
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=19.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
Adds the birthdate field in the POS Customer Screen so that the
36+
information can be directly entered there.
37+
38+
**Table of contents**
39+
40+
.. contents::
41+
:local:
42+
43+
Bug Tracker
44+
===========
45+
46+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
47+
In case of trouble, please check there if your issue has already been reported.
48+
If you spotted it first, help us to smash it by providing a detailed and welcomed
49+
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_partner_birthdate%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
50+
51+
Do not contact contributors directly about support or help with technical issues.
52+
53+
Credits
54+
=======
55+
56+
Authors
57+
-------
58+
59+
* Emanuel Cino
60+
61+
Contributors
62+
------------
63+
64+
- Emanuel Cino <ecino@compassion.ch>
65+
- Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>
66+
- Enric Tobella
67+
68+
Maintainers
69+
-----------
70+
71+
This module is maintained by the OCA.
72+
73+
.. image:: https://odoo-community.org/logo.png
74+
:alt: Odoo Community Association
75+
:target: https://odoo-community.org
76+
77+
OCA, or the Odoo Community Association, is a nonprofit organization whose
78+
mission is to support the collaborative development of Odoo features and
79+
promote its widespread use.
80+
81+
.. |maintainer-ecino| image:: https://github.com/ecino.png?size=40px
82+
:target: https://github.com/ecino
83+
:alt: ecino
84+
85+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
86+
87+
|maintainer-ecino|
88+
89+
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/19.0/pos_partner_birthdate>`_ project on GitHub.
90+
91+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

pos_partner_birthdate/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2023 Emanuel Cino
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Point of Sale - Partner contact birthdate",
5+
"summary": "Adds the birthdate in the customer screen of POS",
6+
"version": "19.0.1.0.0",
7+
"development_status": "Beta",
8+
"category": "Point of sale",
9+
"website": "https://github.com/OCA/pos",
10+
"author": "Emanuel Cino, Odoo Community Association (OCA)",
11+
"maintainers": ["ecino"],
12+
"license": "AGPL-3",
13+
"installable": True,
14+
"depends": ["point_of_sale", "partner_contact_birthdate"],
15+
"assets": {
16+
"point_of_sale._assets_pos": [
17+
(
18+
"after",
19+
"point_of_sale/static/src/app/screens/partner_list/partner_list.xml",
20+
"pos_partner_birthdate/static/src/xml/screens.xml",
21+
),
22+
"pos_partner_birthdate/static/src/js/PartnerLine.esm.js",
23+
"pos_partner_birthdate/static/src/js/ResPartner.esm.js",
24+
]
25+
},
26+
}

pos_partner_birthdate/i18n/es.po

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_partner_birthdate
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-09-02 19:38+0000\n"
10+
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
11+
"Language-Team: none\n"
12+
"Language: es\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: pos_partner_birthdate
20+
#. odoo-javascript
21+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
22+
#, python-format
23+
msgid "Birthdate"
24+
msgstr "Fecha de Nacimiento"
25+
26+
#. module: pos_partner_birthdate
27+
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
28+
msgid "Point of Sale Session"
29+
msgstr "Sesión del Punto de Venta"

pos_partner_birthdate/i18n/fr.po

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_partner_birthdate
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-02-04 12:37+0000\n"
10+
"Last-Translator: Cyril VINH-TUNG <cyril@invitu.com>\n"
11+
"Language-Team: none\n"
12+
"Language: fr\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: pos_partner_birthdate
20+
#. odoo-javascript
21+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
22+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
23+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
24+
#, python-format
25+
msgid "Birthdate"
26+
msgstr "Date de naissance"
27+
28+
#. module: pos_partner_birthdate
29+
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
30+
msgid "Point of Sale Session"
31+
msgstr "Session du point de vente"

pos_partner_birthdate/i18n/it.po

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_partner_birthdate
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2025-06-25 07:53+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 5.10.4\n"
18+
19+
#. module: pos_partner_birthdate
20+
#. odoo-javascript
21+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
22+
#, python-format
23+
msgid "Birthdate"
24+
msgstr "Data di nascita"
25+
26+
#. module: pos_partner_birthdate
27+
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
28+
msgid "Point of Sale Session"
29+
msgstr "Sessione punto vendita"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_partner_birthdate
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: pos_partner_birthdate
17+
#. odoo-javascript
18+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
19+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
20+
#: code:addons/pos_partner_birthdate/static/src/xml/screens.xml:0
21+
#, python-format
22+
msgid "Birthdate"
23+
msgstr ""
24+
25+
#. module: pos_partner_birthdate
26+
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
27+
msgid "Point of Sale Session"
28+
msgstr ""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import res_partner
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from odoo import models
4+
5+
6+
class ResPartner(models.Model):
7+
_inherit = "res.partner"
8+
9+
def _load_pos_data_fields(self, config_id):
10+
fields = super()._load_pos_data_fields(config_id)
11+
fields.append("birthdate_date")
12+
return fields
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

0 commit comments

Comments
 (0)