Skip to content

Commit

Permalink
[MIG] pos_partner_birthdate: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rousemilano committed Nov 7, 2023
1 parent 70b9a4e commit 07705f5
Show file tree
Hide file tree
Showing 15 changed files with 681 additions and 0 deletions.
86 changes: 86 additions & 0 deletions pos_partner_birthdate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
=========================================
Point of Sale - Partner contact birthdate
=========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f1523be25b98e589894f75723bfd373c2c07be4882ea06e1bceb509b784153e1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/16.0/pos_partner_birthdate
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_partner_birthdate
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Adds the birthdate field in the POS Customer Screen so that the
information can be directly entered there.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_partner_birthdate%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Emanuel Cino

Contributors
~~~~~~~~~~~~

* Emanuel Cino <ecino@compassion.ch>
* Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-ecino| image:: https://github.com/ecino.png?size=40px
:target: https://github.com/ecino
:alt: ecino

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ecino|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_partner_birthdate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions pos_partner_birthdate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
21 changes: 21 additions & 0 deletions pos_partner_birthdate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2023 Emanuel Cino
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Point of Sale - Partner contact birthdate",
"summary": "Adds the birthdate in the customer screen of POS",
"version": "17.0.1.0.0",
"development_status": "Beta",
"category": "Point of sale",
"website": "https://github.com/OCA/pos",
"author": "Emanuel Cino, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["point_of_sale", "partner_contact_birthdate"],
'assets': {
'point_of_sale._assets_pos': [
'pos_partner_birthdate/static/src/**/*',
]
},
}

29 changes: 29 additions & 0 deletions pos_partner_birthdate/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_birthdate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-02 19:38+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_partner_birthdate
#. odoo-javascript
#: code:addons/pos_partner_birthdate/static/src/xml/ClientDetailsEdit.xml:0
#, python-format
msgid "Birthdate"
msgstr "Fecha de Nacimiento"

#. module: pos_partner_birthdate
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
msgid "Point of Sale Session"
msgstr "Sesión del Punto de Venta"
29 changes: 29 additions & 0 deletions pos_partner_birthdate/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_birthdate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-04-25 21:34+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: pos_partner_birthdate
#. odoo-javascript
#: code:addons/pos_partner_birthdate/static/src/xml/ClientDetailsEdit.xml:0
#, python-format
msgid "Birthdate"
msgstr "Compleanno"

#. module: pos_partner_birthdate
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
msgid "Point of Sale Session"
msgstr "Sessione punto vendita"
27 changes: 27 additions & 0 deletions pos_partner_birthdate/i18n/pos_partner_birthdate.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_birthdate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_partner_birthdate
#. odoo-javascript
#: code:addons/pos_partner_birthdate/static/src/xml/ClientDetailsEdit.xml:0
#: code:addons/pos_partner_birthdate/static/src/xml/ClientDetailsEdit.xml:0
#, python-format
msgid "Birthdate"
msgstr ""

#. module: pos_partner_birthdate
#: model:ir.model,name:pos_partner_birthdate.model_pos_session
msgid "Point of Sale Session"
msgstr ""
4 changes: 4 additions & 0 deletions pos_partner_birthdate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import pos_session
13 changes: 13 additions & 0 deletions pos_partner_birthdate/models/pos_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class POSSession(models.Model):
_inherit = "pos.session"

def _loader_params_res_partner(self):
res = super()._loader_params_res_partner()
res["search_params"]["fields"].append("birthdate_date")
return res
2 changes: 2 additions & 0 deletions pos_partner_birthdate/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Emanuel Cino <ecino@compassion.ch>
* Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>
2 changes: 2 additions & 0 deletions pos_partner_birthdate/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Adds the birthdate field in the POS Customer Screen so that the
information can be directly entered there.
Empty file.
Binary file added pos_partner_birthdate/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 07705f5

Please sign in to comment.