diff --git a/pos_customer_comment/README.rst b/pos_customer_comment/README.rst index 9bd0128c8d..15c97fe9a2 100644 --- a/pos_customer_comment/README.rst +++ b/pos_customer_comment/README.rst @@ -14,16 +14,16 @@ Point of Sale - Cashier Comment :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_customer_comment + :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/16.0 + :target: https://runbot.odoo-community.org/runbot/184/14.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|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. @@ -38,18 +38,18 @@ Usage * Go to your partner view and write or edit new PoS comments -.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_customer_comment/static/description/res_partner_form.png +.. 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/16.0/pos_customer_comment/static/description/pos_customer_tree.png +.. 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/16.0/pos_customer_comment/static/description/pos_customer_form.png +.. figure:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_customer_comment/static/description/pos_customer_form.png Known issues / Roadmap ====================== @@ -64,7 +64,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -107,8 +107,8 @@ promote its widespread use. Current `maintainer `__: -|maintainer-legalsylvain| +|maintainer-legalsylvain| -This module is part of the `OCA/pos `_ project on GitHub. +This module is part of the `OCA/pos `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_customer_comment/__manifest__.py b/pos_customer_comment/__manifest__.py index 4872cbb5c3..96de6ee4ab 100644 --- a/pos_customer_comment/__manifest__.py +++ b/pos_customer_comment/__manifest__.py @@ -6,7 +6,7 @@ "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": "16.0.1.0.0", + "version": "14.0.1.0.0", "category": "Point of Sale", "maintainers": ["legalsylvain"], "author": "GRAP,Odoo Community Association (OCA)", @@ -14,18 +14,13 @@ "license": "AGPL-3", "depends": ["point_of_sale"], "data": [ + "views/assets.xml", "views/view_res_partner.xml", ], - "assets": { - "point_of_sale.assets": [ - "pos_customer_comment/static/src/css/pos_customer_comment.scss", - "pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml", - "pos_customer_comment/static/src/xml/PartnerLine.xml", - ], - "web.assets_tests": [ - "pos_customer_comment/tests/tours/PosCustomerComment.tour.js", - ], - }, + "qweb": [ + "static/src/xml/PartnerDetailsEdit.xml", + "static/src/xml/PartnerLine.xml", + ], "demo": [ "demo/res_partner.xml", ], diff --git a/pos_customer_comment/i18n/es.po b/pos_customer_comment/i18n/es.po index 4a0c3db137..7d2376370e 100644 --- a/pos_customer_comment/i18n/es.po +++ b/pos_customer_comment/i18n/es.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" +"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é \n" diff --git a/pos_customer_comment/i18n/it.po b/pos_customer_comment/i18n/it.po index 52457fcfd5..52994f4fee 100644 --- a/pos_customer_comment/i18n/it.po +++ b/pos_customer_comment/i18n/it.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" +"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 \n" diff --git a/pos_customer_comment/i18n/pos_customer_comment.pot b/pos_customer_comment/i18n/pos_customer_comment.pot index 2f9341ac88..c1de9e6c58 100644 --- a/pos_customer_comment/i18n/pos_customer_comment.pot +++ b/pos_customer_comment/i18n/pos_customer_comment.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/pos_customer_comment/models/__init__.py b/pos_customer_comment/models/__init__.py index 3d937eb7aa..91fed54d40 100644 --- a/pos_customer_comment/models/__init__.py +++ b/pos_customer_comment/models/__init__.py @@ -1,2 +1 @@ -from . import pos_session from . import res_partner diff --git a/pos_customer_comment/models/pos_session.py b/pos_customer_comment/models/pos_session.py deleted file mode 100644 index c28bfc2677..0000000000 --- a/pos_customer_comment/models/pos_session.py +++ /dev/null @@ -1,14 +0,0 @@ -# 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 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("pos_comment") - return res diff --git a/pos_customer_comment/static/description/index.html b/pos_customer_comment/static/description/index.html index 4744bf687f..619352fc4c 100644 --- a/pos_customer_comment/static/description/index.html +++ b/pos_customer_comment/static/description/index.html @@ -367,7 +367,7 @@

Point of Sale - Cashier Comment

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

Beta License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

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

@@ -391,7 +391,7 @@

Usage

  • Go to your partner view and write or edit new PoS comments
  • -https://raw.githubusercontent.com/OCA/pos/16.0/pos_customer_comment/static/description/res_partner_form.png +https://raw.githubusercontent.com/OCA/pos/14.0/pos_customer_comment/static/description/res_partner_form.png
    • Then Open your Point of sale
    • @@ -399,11 +399,11 @@

      Usage

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

      -https://raw.githubusercontent.com/OCA/pos/16.0/pos_customer_comment/static/description/pos_customer_tree.png +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:

      -https://raw.githubusercontent.com/OCA/pos/16.0/pos_customer_comment/static/description/pos_customer_form.png +https://raw.githubusercontent.com/OCA/pos/14.0/pos_customer_comment/static/description/pos_customer_form.png
      @@ -417,7 +417,7 @@

      Bug Tracker

      Bugs are tracked on GitHub 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.

      +feedback.

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

      @@ -450,7 +450,7 @@

      Maintainers

      promote its widespread use.

      Current maintainer:

      legalsylvain

      -

      This module is part of the OCA/pos project on GitHub.

      +

      This module is part of the OCA/pos project on GitHub.

      You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

      diff --git a/pos_customer_comment/static/src/css/pos_customer_comment.scss b/pos_customer_comment/static/src/css/pos_customer_comment.scss index 80be511e37..914db7730c 100644 --- a/pos_customer_comment/static/src/css/pos_customer_comment.scss +++ b/pos_customer_comment/static/src/css/pos_customer_comment.scss @@ -4,7 +4,7 @@ License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html */ -.pos .partnerlist-screen .partner-details textarea { +.pos .clientlist-screen .client-details textarea { padding: 4px; border-radius: 3px; border: solid 1px #cecbcb; @@ -17,6 +17,6 @@ box-sizing: border-box; } -.pos .partnerlist-screen .partner-details span.label { +.pos .clientlist-screen .client-details span.label { vertical-align: top; } diff --git a/pos_customer_comment/static/src/js/models.js b/pos_customer_comment/static/src/js/models.js new file mode 100644 index 0000000000..14205c505c --- /dev/null +++ b/pos_customer_comment/static/src/js/models.js @@ -0,0 +1,6 @@ +odoo.define("pos_customer_comment.models", function (require) { + "use strict"; + + var models = require("point_of_sale.models"); + models.load_fields("res.partner", ["pos_comment"]); +}); diff --git a/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml b/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml index 9cae1698ff..2c51be9d70 100644 --- a/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml +++ b/pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml @@ -7,13 +7,13 @@ -
      +
      Comment