diff --git a/hide_product_pos_receipt/README.rst b/hide_product_pos_receipt/README.rst new file mode 100644 index 000000000..feaa7f6d3 --- /dev/null +++ b/hide_product_pos_receipt/README.rst @@ -0,0 +1,43 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://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 + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) + + +Credits +------- +Developer: Gokul P I @cybrosys, 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 `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file 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..7f603b7e2 --- /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', + '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 ' + 'configuringthe"Hide Product in POS Receipt" feature is ' + 'straightforward and user-friendly. Once implemented, users' + 'can easily test the changesby creating sales transactions ' + 'in the POS module and verifying the appearance of products' + ' on the receipt.', + 'summary': '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', + 'category': 'Point of Sale', + 'version': '16.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['point_of_sale'], + 'data': [ + 'views/product_template_views.xml' + ], + 'assets': { + 'point_of_sale.assets': [ + 'hide_product_pos_receipt/static/src/js/product_template.js', + 'hide_product_pos_receipt/static/src/js/receipt.js', + 'hide_product_pos_receipt/static/src/xml/receipt_templates.xml' + ], + }, + 'images': [ + 'static/description/banner.png', + ], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': 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..59bc661b8 --- /dev/null +++ b/hide_product_pos_receipt/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.07.2023 +#### Version 16.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..4002c1518 --- /dev/null +++ b/hide_product_pos_receipt/models/__init__.py @@ -0,0 +1,23 @@ +# -*- 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 pos_session +from . import product_product diff --git a/hide_product_pos_receipt/models/pos_session.py b/hide_product_pos_receipt/models/pos_session.py new file mode 100644 index 000000000..86fef3149 --- /dev/null +++ b/hide_product_pos_receipt/models/pos_session.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 models + + +class PosSession(models.Model): + """Inheriting the pos session""" + _inherit = 'pos.session' + + def _pos_ui_models_to_load(self): + """Pos ui models to load add update the values in product.product""" + result = super()._pos_ui_models_to_load() + result += ['product.product'] + return result + + def _loader_params_product_product(self): + """Load the hide_receipt fields in product.product""" + result = super()._loader_params_product_product() + result['search_params']['fields'].append('hide_receipt') + return result + + def fields_get(self, allfields=None, attributes=None): + """Supering the fields_get method""" + fields = super().fields_get(allfields=allfields, attributes=attributes) + return fields 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..dab239ed2 --- /dev/null +++ b/hide_product_pos_receipt/models/product_product.py @@ -0,0 +1,31 @@ +# -*- 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 ProductProductInherited(models.Model): + _inherit = 'product.product' + """Inheriting product template to add the hide receipt field""" + + hide_receipt = fields.Boolean(string="Hide In 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/Odoo-POS1.png b/hide_product_pos_receipt/static/description/assets/Odoo-POS1.png new file mode 100644 index 000000000..6adeba8d3 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/Odoo-POS1.png differ diff --git a/hide_product_pos_receipt/static/description/assets/Odoo-POS2.png b/hide_product_pos_receipt/static/description/assets/Odoo-POS2.png new file mode 100644 index 000000000..890b1402a Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/Odoo-POS2.png differ diff --git a/hide_product_pos_receipt/static/description/assets/Odoo-POSreceipt.png b/hide_product_pos_receipt/static/description/assets/Odoo-POSreceipt.png new file mode 100644 index 000000000..831d0a0fb Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/Odoo-POSreceipt.png differ diff --git a/hide_product_pos_receipt/static/description/assets/hero.gif b/hide_product_pos_receipt/static/description/assets/hero.gif new file mode 100644 index 000000000..43549ee0b Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/hero.gif differ diff --git a/hide_product_pos_receipt/static/description/assets/hide_product.png b/hide_product_pos_receipt/static/description/assets/hide_product.png new file mode 100644 index 000000000..03d04463c Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/hide_product.png differ 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/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/modules/1.png b/hide_product_pos_receipt/static/description/assets/modules/1.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/modules/1.png differ diff --git a/hide_product_pos_receipt/static/description/assets/modules/2.png b/hide_product_pos_receipt/static/description/assets/modules/2.png new file mode 100644 index 000000000..4f9e87f6e Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/modules/2.png differ diff --git a/hide_product_pos_receipt/static/description/assets/modules/3.png b/hide_product_pos_receipt/static/description/assets/modules/3.png new file mode 100644 index 000000000..e571015b1 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/modules/3.png differ diff --git a/hide_product_pos_receipt/static/description/assets/modules/4.png b/hide_product_pos_receipt/static/description/assets/modules/4.png new file mode 100644 index 000000000..624ef69b7 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/modules/4.png differ diff --git a/hide_product_pos_receipt/static/description/assets/modules/5.gif b/hide_product_pos_receipt/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/modules/5.gif differ diff --git a/hide_product_pos_receipt/static/description/assets/modules/6.png b/hide_product_pos_receipt/static/description/assets/modules/6.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/hide_product_pos_receipt/static/description/assets/modules/6.png differ diff --git a/hide_product_pos_receipt/static/description/banner.png b/hide_product_pos_receipt/static/description/banner.png new file mode 100644 index 000000000..61a29d9f3 Binary files /dev/null and b/hide_product_pos_receipt/static/description/banner.png 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..94f28627e Binary files /dev/null and b/hide_product_pos_receipt/static/description/icon.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..fd064ae6a --- /dev/null +++ b/hide_product_pos_receipt/static/description/index.html @@ -0,0 +1,677 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo SH +
+
+
+ +
+ +

+ 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

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ 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 changesby creating sales transactions + in the POS module and verifying the appearance of products on the + receipt +
+ +
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ +
+ Enhanced Clarity: By hiding certain products on the POS receipt, you can create a cleaner and more streamlined receipt for your customers. This can help avoid confusion and make it easier for them to review the relevant information. +
+
+
+ +
+ Simplified Checkout Process: Removing irrelevant or non-essential products from the POS receipt can help simplify the checkout process, making it quicker and more efficient for both customers and cashiers. +
+
+
+ +
+ Personalization: With the ability to customize the POS receipt, you can tailor it to match your brand's identity and create a consistent and professional look across all customer interactions. +
+
+
+ +
+ Reduced Paper Usage: Hiding products on the receipt can help conserve paper and reduce printing costs, especially for businesses with extensive product catalogs or large transactions. +
+
+
+ +
+ It streamlines the printing experience, reducing the need for manual printing tasks and minimizing errors. +
+
+
+ +
+ Improved Presentation: By eliminating unnecessary or less relevant items from the receipt, you can present a more professional and organized image to your customers. +
+
+
+
+ + + +
+
+ +
+

+ 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/product_template.js b/hide_product_pos_receipt/static/src/js/product_template.js new file mode 100644 index 000000000..8a36db864 --- /dev/null +++ b/hide_product_pos_receipt/static/src/js/product_template.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); +}); \ No newline at end of file diff --git a/hide_product_pos_receipt/static/src/js/receipt.js b/hide_product_pos_receipt/static/src/js/receipt.js new file mode 100644 index 000000000..489ef3977 --- /dev/null +++ b/hide_product_pos_receipt/static/src/js/receipt.js @@ -0,0 +1,15 @@ +odoo.define('hide_product_pos_receipt.receipt', function (require) { +"use strict"; +var { Orderline } = require('point_of_sale.models'); +const Registries = require('point_of_sale.Registries'); +//Extending the models and add the hide_receipt value +const hideproduct = (Orderline) => class hideproduct extends Orderline { + export_for_printing() { + var line = super.export_for_printing(...arguments); + line.product_variant_id = this.product.id; + line.hide_receipt = this.get_product().hide_receipt; + return line; + } +} +Registries.Model.extend(Orderline, hideproduct); +}); \ No newline at end of file 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..e17d57c7d --- /dev/null +++ b/hide_product_pos_receipt/static/src/xml/receipt_templates.xml @@ -0,0 +1,61 @@ + + + + + + +
+ + + + +
+ +
+
+ + + +
+ + +
+ + -> + +
+
+ + +
+ + + + + + +
+
+ +
+ Discount: % +
+
+ +
+ + + x + + + + +
+
+ + + + \ No newline at end of file diff --git a/hide_product_pos_receipt/views/product_template_views.xml b/hide_product_pos_receipt/views/product_template_views.xml new file mode 100644 index 000000000..b0038e53b --- /dev/null +++ b/hide_product_pos_receipt/views/product_template_views.xml @@ -0,0 +1,18 @@ + + + + + + product.product.view.form.inherit.hide.product.pos.receipt + + product.product + + + + + + + + \ No newline at end of file