Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][BACKPORT] pos_customer_comment: Backport from 16.0 to 14.0 #983

Closed
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
114 changes: 114 additions & 0 deletions pos_customer_comment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
===============================
Point of Sale - Cashier Comment
===============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.0/pos_customer_comment
: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_customer_comment
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/14.0
:alt: Try me on Runbot

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

This module extends the functionality of point of sale module, to allow display and edit
customer note field in the point of sale UI for the cashier.

**Table of contents**

.. contents::
:local:

Usage
=====

* Go to your partner view and write or edit new PoS comments

.. figure:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_customer_comment/static/description/res_partner_form.png

* Then Open your Point of sale

in the customer tree view, a new icon is available to mention that the customer
has a PoS Comment to read:

.. figure:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_customer_comment/static/description/pos_customer_tree.png

It is possible to see or edit the comment in the customer form view:

.. figure:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_customer_comment/static/description/pos_customer_form.png

Known issues / Roadmap
======================

For the time being, there is no HTML widget available in the point of sale.
For that reason, the Cashier comment (``pos_comment``) is a simple Text field.
If a widget is available in odoo, it could be great to switch to a HTML field text.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_customer_comment%0Aversion:%2014.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
~~~~~~~

* GRAP

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

* Sylvain LE GAL (https://twitter.com/legalsylvain)

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* UGESS, Union Nationale des Groupements des épiceries Sociales et Solidaires (https://ugess.org/)

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

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

|maintainer-legalsylvain|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/14.0/pos_customer_comment>`_ 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_customer_comment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
28 changes: 28 additions & 0 deletions pos_customer_comment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2022-Today GRAP (http://www.grap.coop)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Point of Sale - Cashier Comment",
"summary": "Display Customer comment in the PoS front office and allow"
" to edit and save it by the cashier",
"version": "14.0.1.0.0",
"category": "Point of Sale",
"maintainers": ["legalsylvain"],
"author": "GRAP,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [
"views/assets.xml",
"views/view_res_partner.xml",
],
"qweb": [
"static/src/xml/PartnerDetailsEdit.xml",
"static/src/xml/PartnerLine.xml",
],
"demo": [
"demo/res_partner.xml",
],
"installable": True,
}
13 changes: 13 additions & 0 deletions pos_customer_comment/demo/res_partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2022-Today GRAP (http://www.grap.coop)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
-->
<odoo>
<record id="base.res_partner_2" model="res.partner">
<field
name="pos_comment"
>Important information to display in Point of Sale</field>
</record>
</odoo>
67 changes: 67 additions & 0 deletions pos_customer_comment/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_customer_comment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-02 16:30+0000\n"
"Last-Translator: Patricia Lorenzo Bartolomé <[email protected]>\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.14.1\n"

#. module: pos_customer_comment
#: model:ir.model.fields,field_description:pos_customer_comment.field_res_partner__pos_comment
#: model:ir.model.fields,field_description:pos_customer_comment.field_res_users__pos_comment
#: model_terms:ir.ui.view,arch_db:pos_customer_comment.view_res_partner_form
msgid "Cashier Comment"
msgstr "Comentario del cajero"

#. module: pos_customer_comment
#. odoo-javascript
#: code:addons/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml:0
#: code:addons/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml:0
#, python-format
msgid "Comment"
msgstr "Comentario"

#. module: pos_customer_comment
#: model:ir.model.fields,help:pos_customer_comment.field_res_partner__pos_comment
#: model:ir.model.fields,help:pos_customer_comment.field_res_users__pos_comment
msgid ""
"Comment that will be visible and editable in the Point of Sale for the "
"cashiers"
msgstr ""
"Comentario que será visible y editable en el punto de venta para los cajeros"

#. module: pos_customer_comment
#: model_terms:ir.ui.view,arch_db:pos_customer_comment.view_res_partner_form
msgid ""
"Comment that will be visible and editable in the Point of Sale for the "
"cashiers"
msgstr ""
"Comentario que será visible y editable en el punto de venta para los cajeros"

#. module: pos_customer_comment
#: model:ir.model,name:pos_customer_comment.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: pos_customer_comment
#. odoo-javascript
#: code:addons/pos_customer_comment/static/src/xml/PartnerLine.xml:0
#: code:addons/pos_customer_comment/static/src/xml/PartnerLine.xml:0
#, python-format
msgid "Has PoS Comment"
msgstr "Tiene comentarios en el punto de venta"

#. module: pos_customer_comment
#: model:ir.model,name:pos_customer_comment.model_pos_session
msgid "Point of Sale Session"
msgstr "Sesión TPV"
69 changes: 69 additions & 0 deletions pos_customer_comment/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_customer_comment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-09 13:22+0000\n"
"Last-Translator: mymage <[email protected]>\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_customer_comment
#: model:ir.model.fields,field_description:pos_customer_comment.field_res_partner__pos_comment
#: model:ir.model.fields,field_description:pos_customer_comment.field_res_users__pos_comment
#: model_terms:ir.ui.view,arch_db:pos_customer_comment.view_res_partner_form
msgid "Cashier Comment"
msgstr "Commento cassiere"

#. module: pos_customer_comment
#. odoo-javascript
#: code:addons/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml:0
#: code:addons/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml:0
#, python-format
msgid "Comment"
msgstr "Commento"

#. module: pos_customer_comment
#: model:ir.model.fields,help:pos_customer_comment.field_res_partner__pos_comment
#: model:ir.model.fields,help:pos_customer_comment.field_res_users__pos_comment
msgid ""
"Comment that will be visible and editable in the Point of Sale for the "
"cashiers"
msgstr ""
"Commento per il cassiere che può essere visibile e mdificabile nel punto "
"vendita"

#. module: pos_customer_comment
#: model_terms:ir.ui.view,arch_db:pos_customer_comment.view_res_partner_form
msgid ""
"Comment that will be visible and editable in the Point of Sale for the "
"cashiers"
msgstr ""
"Commento per il cassiere che può essere visibile e mdificabile nel punto "
"vendita"

#. module: pos_customer_comment
#: model:ir.model,name:pos_customer_comment.model_res_partner
msgid "Contact"
msgstr "Contatto"

#. module: pos_customer_comment
#. odoo-javascript
#: code:addons/pos_customer_comment/static/src/xml/PartnerLine.xml:0
#: code:addons/pos_customer_comment/static/src/xml/PartnerLine.xml:0
#, python-format
msgid "Has PoS Comment"
msgstr "Ha commento PoS"

#. module: pos_customer_comment
#: model:ir.model,name:pos_customer_comment.model_pos_session
msgid "Point of Sale Session"
msgstr "Sessione punto vendita"
62 changes: 62 additions & 0 deletions pos_customer_comment/i18n/pos_customer_comment.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_customer_comment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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_customer_comment
#: model:ir.model.fields,field_description:pos_customer_comment.field_res_partner__pos_comment
#: model:ir.model.fields,field_description:pos_customer_comment.field_res_users__pos_comment
#: model_terms:ir.ui.view,arch_db:pos_customer_comment.view_res_partner_form
msgid "Cashier Comment"
msgstr ""

#. module: pos_customer_comment
#. odoo-javascript
#: code:addons/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml:0
#: code:addons/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml:0
#, python-format
msgid "Comment"
msgstr ""

#. module: pos_customer_comment
#: model:ir.model.fields,help:pos_customer_comment.field_res_partner__pos_comment
#: model:ir.model.fields,help:pos_customer_comment.field_res_users__pos_comment
msgid ""
"Comment that will be visible and editable in the Point of Sale for the "
"cashiers"
msgstr ""

#. module: pos_customer_comment
#: model_terms:ir.ui.view,arch_db:pos_customer_comment.view_res_partner_form
msgid ""
"Comment that will be visible and editable in the Point of Sale for the "
"cashiers"
msgstr ""

#. module: pos_customer_comment
#: model:ir.model,name:pos_customer_comment.model_res_partner
msgid "Contact"
msgstr ""

#. module: pos_customer_comment
#. odoo-javascript
#: code:addons/pos_customer_comment/static/src/xml/PartnerLine.xml:0
#: code:addons/pos_customer_comment/static/src/xml/PartnerLine.xml:0
#, python-format
msgid "Has PoS Comment"
msgstr ""

#. module: pos_customer_comment
#: model:ir.model,name:pos_customer_comment.model_pos_session
msgid "Point of Sale Session"
msgstr ""
1 change: 1 addition & 0 deletions pos_customer_comment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
15 changes: 15 additions & 0 deletions pos_customer_comment/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (C) 2022-Today GRAP (http://www.grap.coop)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import fields, models


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

pos_comment = fields.Text(
string="Cashier Comment",
help="Comment that will be visible and editable in the"
" Point of Sale for the cashiers",
)
1 change: 1 addition & 0 deletions pos_customer_comment/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL (https://twitter.com/legalsylvain)
3 changes: 3 additions & 0 deletions pos_customer_comment/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The development of this module has been financially supported by:

* UGESS, Union Nationale des Groupements des épiceries Sociales et Solidaires (https://ugess.org/)
2 changes: 2 additions & 0 deletions pos_customer_comment/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of point of sale module, to allow display and edit
customer note field in the point of sale UI for the cashier.
3 changes: 3 additions & 0 deletions pos_customer_comment/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
For the time being, there is no HTML widget available in the point of sale.
For that reason, the Cashier comment (``pos_comment``) is a simple Text field.
If a widget is available in odoo, it could be great to switch to a HTML field text.
Loading
Loading