diff --git a/pos_ticket_without_price/README.rst b/pos_ticket_without_price/README.rst new file mode 100644 index 00000000..c2c76b65 --- /dev/null +++ b/pos_ticket_without_price/README.rst @@ -0,0 +1,84 @@ +======================== +POS Ticket Without Price +======================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/12.0/pos_ticket_without_price + :alt: OCA/pos +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_ticket_without_price + :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/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to print from POS a ticket without price or taxes + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +POS printing proxy mode must be disabled, then you can generate the ticket +without price through the POS receipt screen. + +Known issues / Roadmap +====================== + +- Implement ticket without price generation on proxy mode. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Solvos + +Contributors +~~~~~~~~~~~~ + +* David Alonso + +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. + +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_ticket_without_price/__init__.py b/pos_ticket_without_price/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pos_ticket_without_price/__manifest__.py b/pos_ticket_without_price/__manifest__.py new file mode 100644 index 00000000..e1fbf3e3 --- /dev/null +++ b/pos_ticket_without_price/__manifest__.py @@ -0,0 +1,22 @@ +# © 2019 Solvos Consultoría Informática () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "POS Ticket Without Price", + "summary": "Adds receipt ticket without price or taxes", + "version": "12.0.1.0.0", + "author": "Odoo Community Association (OCA), Solvos", + "website": "http://www.github.com/OCA/pos", + "license": "AGPL-3", + "category": "Point Of Sale", + "depends": [ + 'point_of_sale' + ], + 'data': [ + "views/pos_templates.xml", + ], + "qweb": [ + 'static/src/xml/pos.xml', + ], + 'installable': True, +} diff --git a/pos_ticket_without_price/i18n/es.po b/pos_ticket_without_price/i18n/es.po new file mode 100644 index 00000000..3bc7b770 --- /dev/null +++ b/pos_ticket_without_price/i18n/es.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * pos_ticket_without_price +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-12-11 15:47+0000\n" +"PO-Revision-Date: 2019-12-11 15:47+0000\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_ticket_without_price +#. openerp-web +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:7 +#, python-format +msgid "Print Ticket Without Price" +msgstr "Imprimir ticket sin precios" + +#. module: pos_ticket_without_price +#. openerp-web +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:14 +#, python-format +msgid "TICKET WITHOUT PRICE" +msgstr "TICKET REGALO" + +#. module: pos_ticket_without_price +#. openerp-web +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:20 +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:23 +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:26 +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:29 +#, python-format +msgid "oe_hidden" +msgstr "oe_hidden" + diff --git a/pos_ticket_without_price/i18n/pos_ticket_without_price.pot b/pos_ticket_without_price/i18n/pos_ticket_without_price.pot new file mode 100644 index 00000000..ec5417ba --- /dev/null +++ b/pos_ticket_without_price/i18n/pos_ticket_without_price.pot @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * pos_ticket_without_price +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-12-11 15:47+0000\n" +"PO-Revision-Date: 2019-12-11 15:47+0000\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_ticket_without_price +#. openerp-web +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:7 +#, python-format +msgid "Print Ticket Without Price" +msgstr "" + +#. module: pos_ticket_without_price +#. openerp-web +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:14 +#, python-format +msgid "TICKET WITHOUT PRICE" +msgstr "" + +#. module: pos_ticket_without_price +#. openerp-web +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:20 +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:23 +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:26 +#: code:addons/pos_ticket_without_price/static/src/xml/pos.xml:29 +#, python-format +msgid "oe_hidden" +msgstr "" + diff --git a/pos_ticket_without_price/readme/CONTRIBUTORS.rst b/pos_ticket_without_price/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..423455df --- /dev/null +++ b/pos_ticket_without_price/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* David Alonso diff --git a/pos_ticket_without_price/readme/DESCRIPTION.rst b/pos_ticket_without_price/readme/DESCRIPTION.rst new file mode 100644 index 00000000..ebb19a4e --- /dev/null +++ b/pos_ticket_without_price/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to print from POS a ticket without price or taxes diff --git a/pos_ticket_without_price/readme/ROADMAP.rst b/pos_ticket_without_price/readme/ROADMAP.rst new file mode 100644 index 00000000..9f525681 --- /dev/null +++ b/pos_ticket_without_price/readme/ROADMAP.rst @@ -0,0 +1 @@ +- Implement ticket without price generation on proxy mode. diff --git a/pos_ticket_without_price/readme/USAGE.rst b/pos_ticket_without_price/readme/USAGE.rst new file mode 100644 index 00000000..4dd6c86d --- /dev/null +++ b/pos_ticket_without_price/readme/USAGE.rst @@ -0,0 +1,2 @@ +POS printing proxy mode must be disabled, then you can generate the ticket +without price through the POS receipt screen. diff --git a/pos_ticket_without_price/static/description/index.html b/pos_ticket_without_price/static/description/index.html new file mode 100644 index 00000000..181d8189 --- /dev/null +++ b/pos_ticket_without_price/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +POS Ticket Without Price + + + +
+

POS Ticket Without Price

+ + +

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

+

This module allows to print from POS a ticket without price or taxes

+

Table of contents

+ +
+

Usage

+

POS printing proxy mode must be disabled, then you can generate the ticket +without price through the POS receipt screen.

+
+
+

Known issues / Roadmap

+
    +
  • Implement ticket without price generation on proxy mode.
  • +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Solvos
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

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_ticket_without_price/static/src/js/screens.js b/pos_ticket_without_price/static/src/js/screens.js new file mode 100644 index 00000000..0af66262 --- /dev/null +++ b/pos_ticket_without_price/static/src/js/screens.js @@ -0,0 +1,45 @@ +/* Copyright 2019 Solvos Consultoría Informática + License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +*/ + +odoo.define('pos_ticket_without_price.screens', function (require) { + "use strict"; + + var core = require('web.core'); + var screens = require('point_of_sale.screens'); + + var QWeb = core.qweb; + + screens.ReceiptScreenWidget.include({ + + renderElement: function() { + var self = this; + this._super(); + + var button_print_click_handler = $._data( + this.$el.find('.button.print')[0], 'events').click[0].handler; + var button_print = this.$('.button.print'); + button_print.off('click'); + button_print.click(function(){ + self.render_receipt(); + button_print_click_handler(); + }); + + var button_print_ticket_without_price = + this.$('.button.print_ticket_without_price'); + button_print_ticket_without_price.click(function () { + self.render_ticket_without_price(); + self.print(); + }); + + }, + + render_ticket_without_price: function() { + this.$('.pos-receipt-container').html( + QWeb.render('PosTicketWithoutPrice', + this.get_receipt_render_env())); + }, + + }); + +}); diff --git a/pos_ticket_without_price/static/src/xml/pos.xml b/pos_ticket_without_price/static/src/xml/pos.xml new file mode 100644 index 00000000..1d646c83 --- /dev/null +++ b/pos_ticket_without_price/static/src/xml/pos.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + +
+ TICKET WITHOUT PRICE +
+
+ + oe_hidden + + + oe_hidden + + + oe_hidden + + + oe_hidden + +
+ +
diff --git a/pos_ticket_without_price/views/pos_templates.xml b/pos_ticket_without_price/views/pos_templates.xml new file mode 100644 index 00000000..80a74b13 --- /dev/null +++ b/pos_ticket_without_price/views/pos_templates.xml @@ -0,0 +1,11 @@ + + + + + +