diff --git a/hide_product_pos_receipt/README.rst b/hide_product_pos_receipt/README.rst new file mode 100644 index 000000000..cdfbfc9cd --- /dev/null +++ b/hide_product_pos_receipt/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Hide Product In Pos Receipt +=========================== +* The "Hide Product In POS Receipt" feature allows users to selectively hide +certain products from appearing on the point of sale (POS) receipt in Odoo + +Configuration +=========================== +* No additional configurations needed + +Company +=========================== +* `Cybrosys Techno Solutions `__ + +License +=========================== +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +=========================== +* Developers: (V16) Gokul P I + (V15) Ajith V +Contact: odoo@cybrosys.com + +Contacts +=========================== +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +=========================== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ diff --git a/hide_product_pos_receipt/__init__.py b/hide_product_pos_receipt/__init__.py new file mode 100644 index 000000000..e977b0a77 --- /dev/null +++ b/hide_product_pos_receipt/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Technologies () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/hide_product_pos_receipt/__manifest__.py b/hide_product_pos_receipt/__manifest__.py new file mode 100644 index 000000000..ca490e12e --- /dev/null +++ b/hide_product_pos_receipt/__manifest__.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Technologies () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Hide Product In Pos Receipt', + 'version': '15.0.1.0.0', + 'category': 'Point of Sale', + 'summary': 'The "Hide product In POS Receipt" It hides products from POS ' + 'receipts.', + 'description': 'The "Hide Product in POS Receipt" feature allows users to ' + 'selectively hide certain products from appearing on the ' + 'point of sale (POS) receipt in Odoo.Enabling and ' + 'configuring the "Hide Product in POS Receipt" feature is ' + 'straight forward and user-friendly. Once implemented, users' + 'can easily test the changes by creating sales transactions ' + 'in the POS module and verifying the appearance of products' + 'on the receipt.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['point_of_sale'], + 'data': [ + 'views/product_product_views.xml' + ], + 'assets': { + 'point_of_sale.assets': [ + 'hide_product_pos_receipt/static/src/js/product_product.js', + 'hide_product_pos_receipt/static/src/js/pos_receipt.js', + ], + 'web.assets_qweb': [ + 'hide_product_pos_receipt/static/src/xml/receipt_templates.xml', + ], + }, + 'images': [ + 'hide_product_pos_receipt/static/description/banner.jpg', + ], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/hide_product_pos_receipt/doc/RELEASE_NOTES.md b/hide_product_pos_receipt/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..9fbea7a22 --- /dev/null +++ b/hide_product_pos_receipt/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 13.11.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Hide Product In POS Receipt diff --git a/hide_product_pos_receipt/models/__init__.py b/hide_product_pos_receipt/models/__init__.py new file mode 100644 index 000000000..f94581d63 --- /dev/null +++ b/hide_product_pos_receipt/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Technologies () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import product_product diff --git a/hide_product_pos_receipt/models/product_product.py b/hide_product_pos_receipt/models/product_product.py new file mode 100644 index 000000000..b3baaa088 --- /dev/null +++ b/hide_product_pos_receipt/models/product_product.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Technologies () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ProductProduct(models.Model): + """Create class for adding new field in product model""" + _inherit = 'product.product' + + hide_receipt = fields.Boolean( + string='Hides the product from the POS receipt', + help='If this enabled this product will be' + 'hide in the pos receipt') diff --git a/hide_product_pos_receipt/static/description/assets/icons/check.png b/hide_product_pos_receipt/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/check.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/chevron.png b/hide_product_pos_receipt/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/chevron.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/cogs.png b/hide_product_pos_receipt/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/cogs.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/consultation.png b/hide_product_pos_receipt/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/consultation.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/ecom-black.png b/hide_product_pos_receipt/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/ecom-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/education-black.png b/hide_product_pos_receipt/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/education-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/hotel-black.png b/hide_product_pos_receipt/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/hotel-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/license.png b/hide_product_pos_receipt/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/license.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/lifebuoy.png b/hide_product_pos_receipt/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/lifebuoy.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/logo.png b/hide_product_pos_receipt/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/logo.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/manufacturing-black.png b/hide_product_pos_receipt/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/manufacturing-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/pos-black.png b/hide_product_pos_receipt/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/pos-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/puzzle.png b/hide_product_pos_receipt/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/puzzle.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/restaurant-black.png b/hide_product_pos_receipt/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/restaurant-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/service-black.png b/hide_product_pos_receipt/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/service-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/trading-black.png b/hide_product_pos_receipt/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/trading-black.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/training.png b/hide_product_pos_receipt/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/training.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/update.png b/hide_product_pos_receipt/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/update.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/user.png b/hide_product_pos_receipt/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/user.png differ diff --git a/hide_product_pos_receipt/static/description/assets/icons/wrench.png b/hide_product_pos_receipt/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/icons/wrench.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/categories.png b/hide_product_pos_receipt/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/categories.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/check-box.png b/hide_product_pos_receipt/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/check-box.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/compass.png b/hide_product_pos_receipt/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/compass.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/corporate.png b/hide_product_pos_receipt/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/corporate.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/customer-support.png b/hide_product_pos_receipt/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/customer-support.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/cybrosys-logo.png b/hide_product_pos_receipt/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/cybrosys-logo.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/features.png b/hide_product_pos_receipt/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/features.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/logo.png b/hide_product_pos_receipt/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/logo.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/pictures.png b/hide_product_pos_receipt/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/pictures.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/pie-chart.png b/hide_product_pos_receipt/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/pie-chart.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/right-arrow.png b/hide_product_pos_receipt/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/right-arrow.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/star.png b/hide_product_pos_receipt/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/star.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/support.png b/hide_product_pos_receipt/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/support.png differ diff --git a/hide_product_pos_receipt/static/description/assets/misc/whatsapp.png b/hide_product_pos_receipt/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/misc/whatsapp.png differ diff --git a/hide_product_pos_receipt/static/description/assets/screenshots/screenshot1.png b/hide_product_pos_receipt/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..9ff579949 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/screenshots/screenshot1.png differ diff --git a/hide_product_pos_receipt/static/description/assets/screenshots/screenshot2.png b/hide_product_pos_receipt/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..6ea4baca8 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/screenshots/screenshot2.png differ diff --git a/hide_product_pos_receipt/static/description/assets/screenshots/screenshot3.png b/hide_product_pos_receipt/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..83776df0e Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/screenshots/screenshot3.png differ diff --git a/hide_product_pos_receipt/static/description/assets/screenshots/v15-hero.gif b/hide_product_pos_receipt/static/description/assets/screenshots/v15-hero.gif new file mode 100644 index 000000000..760ce3971 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/screenshots/v15-hero.gif differ diff --git a/hide_product_pos_receipt/static/description/banner.jpg b/hide_product_pos_receipt/static/description/banner.jpg new file mode 100644 index 000000000..a65f84fc6 Binary files /dev/null and b/hide_product_pos_receipt/static/description/banner.jpg differ diff --git a/hide_product_pos_receipt/static/description/icon.png b/hide_product_pos_receipt/static/description/icon.png new file mode 100644 index 000000000..97a4f72b3 Binary files /dev/null and b/hide_product_pos_receipt/static/description/icon.png differ diff --git a/hide_product_pos_receipt/static/description/images/modules/pos_booking_order.jpg b/hide_product_pos_receipt/static/description/images/modules/pos_booking_order.jpg new file mode 100644 index 000000000..31f0a1878 Binary files /dev/null and b/hide_product_pos_receipt/static/description/images/modules/pos_booking_order.jpg differ diff --git a/hide_product_pos_receipt/static/description/images/modules/pos_numpad_show_hide.png b/hide_product_pos_receipt/static/description/images/modules/pos_numpad_show_hide.png new file mode 100644 index 000000000..6d589b993 Binary files /dev/null and b/hide_product_pos_receipt/static/description/images/modules/pos_numpad_show_hide.png differ diff --git a/hide_product_pos_receipt/static/description/images/modules/pos_order_line_product_image.png b/hide_product_pos_receipt/static/description/images/modules/pos_order_line_product_image.png new file mode 100644 index 000000000..3f285a8e0 Binary files /dev/null and b/hide_product_pos_receipt/static/description/images/modules/pos_order_line_product_image.png differ diff --git a/hide_product_pos_receipt/static/description/images/modules/pos_product_multi_barcode.png b/hide_product_pos_receipt/static/description/images/modules/pos_product_multi_barcode.png new file mode 100644 index 000000000..5713b11f6 Binary files /dev/null and b/hide_product_pos_receipt/static/description/images/modules/pos_product_multi_barcode.png differ diff --git a/hide_product_pos_receipt/static/description/images/modules/pos_product_multiple_uom.png b/hide_product_pos_receipt/static/description/images/modules/pos_product_multiple_uom.png new file mode 100644 index 000000000..28a75d732 Binary files /dev/null and b/hide_product_pos_receipt/static/description/images/modules/pos_product_multiple_uom.png differ diff --git a/hide_product_pos_receipt/static/description/images/modules/product_return_pos.png b/hide_product_pos_receipt/static/description/images/modules/product_return_pos.png new file mode 100644 index 000000000..be8dd200b Binary files /dev/null and b/hide_product_pos_receipt/static/description/images/modules/product_return_pos.png differ diff --git a/hide_product_pos_receipt/static/description/index.html b/hide_product_pos_receipt/static/description/index.html new file mode 100644 index 000000000..db3a203b2 --- /dev/null +++ b/hide_product_pos_receipt/static/description/index.html @@ -0,0 +1,621 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+ +
+
+
+

+ Hide Product In Pos Receipt

+

+ This App Feature Allows Users To + Selectively Hide Certain Products From Appearing On The + Point Of Sale (POS) Receipt In Odoo +

+
+ + + + +
+
+

+ Overview +

+
+
+

+ Hide Product In POS feature in Odoo offers businesses the + ability to selectively hide products from appearing on their + POS receipts. This improves the overall receipt layout + simplifies the customers purchasing experience.Once + implemented this module, users can easily test the changes + by + creating sales transactions in the POS module and verifying + the appearance of products on the receipt

+
+
+ + +
+
+

+ Features +

+
+
+
+ +
+
+

+ Available in Community, Enterprise

+
+
+
+
+ +
+
+

+ It hides Product from pos receipt

+
+
+
+ + + +
+
+

+ Screenshots +

+
+
+

+ Product View

+

First enable the "Hide In Pos + Receipt" option in the product variant form view.

+ +
+
+

+ Pos Session +

+

And then choose that product in + the pos session and take the order like in the picture shown + below.

+ +
+
+

+ Pos Receipt

+

After the payment completion The + product that has enabled the "Hide In Pos Receipt" is not shown + on the receipt.

+ +
+
+ + +
+
+ +
+

+ Related + Products +

+
+
+
+ +
+
+ + +
+
+ +
+

+ Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + +
+
+ +
+

+ Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need + help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on + WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+
+ \ No newline at end of file diff --git a/hide_product_pos_receipt/static/src/js/pos_receipt.js b/hide_product_pos_receipt/static/src/js/pos_receipt.js new file mode 100644 index 000000000..ea32564ea --- /dev/null +++ b/hide_product_pos_receipt/static/src/js/pos_receipt.js @@ -0,0 +1,14 @@ +odoo.define('hide_product_pos_receipt.receipt', function (require) { + "use strict"; + /* Extend the orderline and load the field to pos model product */ + var models=require('point_of_sale.models'); + models.load_fields('product.product', 'hide_receipt'); + var _super_orderline = models.Orderline.prototype; + models.Orderline = models.Orderline.extend({ //extend the orderline and Add a new field + export_for_printing: function() { + var line = _super_orderline.export_for_printing.apply(this,arguments); + line.hide_receipt = this.get_product().hide_receipt; + return line; + } + }) +}); diff --git a/hide_product_pos_receipt/static/src/js/product_product.js b/hide_product_pos_receipt/static/src/js/product_product.js new file mode 100644 index 000000000..e2fd165d9 --- /dev/null +++ b/hide_product_pos_receipt/static/src/js/product_product.js @@ -0,0 +1,13 @@ +odoo.define('hide_product_pos_receipt.models', function (require) { + "use strict"; + var { PosGlobalState, Order} = require('point_of_sale.models'); + const Registries = require('point_of_sale.Registries'); + //Extending the models and load the product template new fields + const PosSessionHideProduct = (PosGlobalState) => class PosSessionHideProduct extends PosGlobalState { + async _processData(loadedData) { + await super._processData(...arguments); + this.product_template = loadedData['product.product']; + } + } + Registries.Model.extend(PosGlobalState, PosSessionHideProduct); +}); diff --git a/hide_product_pos_receipt/static/src/xml/receipt_templates.xml b/hide_product_pos_receipt/static/src/xml/receipt_templates.xml new file mode 100644 index 000000000..7c797a474 --- /dev/null +++ b/hide_product_pos_receipt/static/src/xml/receipt_templates.xml @@ -0,0 +1,63 @@ + + + + + + +
+ + + + +
+ + + +
+
+ + + +
+ + +
+ + +
+
+ + +
+ + + + + + +
+
+ +
+ Discount: + + % +
+
+ +
+ + + x + + + + +
+
+ + + + diff --git a/hide_product_pos_receipt/views/product_product_views.xml b/hide_product_pos_receipt/views/product_product_views.xml new file mode 100644 index 000000000..9689c4ded --- /dev/null +++ b/hide_product_pos_receipt/views/product_product_views.xml @@ -0,0 +1,17 @@ + + + + + + product.product.view.form.inherit.hide.product.pos.receipt + + product.product + + + + + + + +