Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions pos_partner_ref/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
===================================
Point of Sale - Partner contact ref
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f4e560cdcb93e60d8824aefae214926947a93514b2ab7beeeac48942d9dc984d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.0/pos_partner_ref
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-18-0/pos-18-0-pos_partner_ref
: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=18.0
:alt: Try me on Runboat

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

Adds the ref 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_ref%0Aversion:%2018.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
-------

* INVITU

Contributors
------------

- Emanuel Cino <ecino@compassion.ch>
- Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com>
- Enric Tobella
- Cyril VINH-TUNG <cyril@invitu.com>
- Denis Roussel <denis.roussel@acsone.eu>

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-invitu| image:: https://github.com/invitu.png?size=40px
:target: https://github.com/invitu
:alt: invitu

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

|maintainer-invitu|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_partner_ref/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions pos_partner_ref/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2023 INVITU
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Point of Sale - Partner contact ref",
"summary": "Adds the partner ref in the customer screen of POS",
"version": "18.0.1.0.0",
"development_status": "Beta",
"category": "Point of sale",
"website": "https://github.com/OCA/pos",
"author": "INVITU, Odoo Community Association (OCA)",
"maintainers": ["invitu"],
"license": "AGPL-3",
"installable": True,
"depends": [
"point_of_sale",
],
"assets": {
"point_of_sale._assets_pos": [
"pos_partner_ref/static/src/xml/screens.xml",
"pos_partner_ref/static/src/js/*.js",
]
},
}
31 changes: 31 additions & 0 deletions pos_partner_ref/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_ref
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-11 19:34+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_ref
#: model:ir.model,name:pos_partner_ref.model_pos_session
msgid "Point of Sale Session"
msgstr "Sesión del Punto de Venta"

#. module: pos_partner_ref
#. odoo-javascript
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#, python-format
msgid "Reference"
msgstr "Referencia"
31 changes: 31 additions & 0 deletions pos_partner_ref/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_ref
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-04 12:37+0000\n"
"Last-Translator: Cyril VINH-TUNG <cyril@invitu.com>\n"
"Language-Team: none\n"
"Language: fr\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_ref
#: model:ir.model,name:pos_partner_ref.model_pos_session
msgid "Point of Sale Session"
msgstr "Session du point de vente"

#. module: pos_partner_ref
#. odoo-javascript
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#, python-format
msgid "Reference"
msgstr "Référence"
31 changes: 31 additions & 0 deletions pos_partner_ref/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_ref
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-04 23:43+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.17\n"

#. module: pos_partner_ref
#: model:ir.model,name:pos_partner_ref.model_pos_session
msgid "Point of Sale Session"
msgstr "Sessione punto vendita"

#. module: pos_partner_ref
#. odoo-javascript
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#, python-format
msgid "Reference"
msgstr "Riferimento"
28 changes: 28 additions & 0 deletions pos_partner_ref/i18n/pos_partner_ref.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_partner_ref
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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_ref
#: model:ir.model,name:pos_partner_ref.model_pos_session
msgid "Point of Sale Session"
msgstr ""

#. module: pos_partner_ref
#. odoo-javascript
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#: code:addons/pos_partner_ref/static/src/xml/screens.xml:0
#, python-format
msgid "Reference"
msgstr ""
2 changes: 2 additions & 0 deletions pos_partner_ref/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import pos_session
from . import res_partner
12 changes: 12 additions & 0 deletions pos_partner_ref/models/pos_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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("ref")
return res
14 changes: 14 additions & 0 deletions pos_partner_ref/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2026 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models


class ResPartner(models.Model):
_inherit = "res.partner"

@api.model
def _load_pos_data_fields(self, config_id) -> list:
res = super()._load_pos_data_fields(config_id)
if "ref" not in res:
res.append("ref")
return res
3 changes: 3 additions & 0 deletions pos_partner_ref/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
5 changes: 5 additions & 0 deletions pos_partner_ref/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Emanuel Cino \<<ecino@compassion.ch>\>
- Juan Carlos Bonilla Bravo \<<juancarlos.bonilla@factorlibre.com>\>
- Enric Tobella
- Cyril VINH-TUNG \<<cyril@invitu.com>\>
- Denis Roussel \<<denis.roussel@acsone.eu>\>
2 changes: 2 additions & 0 deletions pos_partner_ref/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Adds the ref field in the POS Customer Screen so that the
information can be directly entered there.
Empty file.
Binary file added pos_partner_ref/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
Loading