diff --git a/custom_receipts_for_pos/README.rst b/custom_receipts_for_pos/README.rst new file mode 100644 index 000000000..84f40da89 --- /dev/null +++ b/custom_receipts_for_pos/README.rst @@ -0,0 +1,38 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS Receipt Designs +=================== +POS Receipt Design + + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Sadique Kottekkat @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/custom_receipts_for_pos/__init__.py b/custom_receipts_for_pos/__init__.py new file mode 100644 index 000000000..7b2c59c1c --- /dev/null +++ b/custom_receipts_for_pos/__init__.py @@ -0,0 +1,22 @@ +# -*- 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 . import models diff --git a/custom_receipts_for_pos/__manifest__.py b/custom_receipts_for_pos/__manifest__.py new file mode 100644 index 000000000..f6050b46e --- /dev/null +++ b/custom_receipts_for_pos/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Sadique Kottekkat () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': 'POS Receipt Design', + 'version': '17.0.1.0.0', + 'category': 'Point of Sale', + 'summary': """Option to select the customised Receipts for each POS""", + 'description': "Option to select the customised Receipts for each POS," + "So we can easily updated the Recipet Design for better styles", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'point_of_sale'], + 'data': [ + 'security/ir.model.access.csv', + 'data/pos_receipt_views_data.xml', + 'views/point_of_sale_views.xml', + 'views/pos_receipt_views.xml', + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'point_of_sale._assets_pos': [ + 'custom_receipts_for_pos/static/src/js/receipt_design.js', + 'custom_receipts_for_pos/static/src/xml/receipt_design_template_views.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/custom_receipts_for_pos/data/pos_receipt_views_data.xml b/custom_receipts_for_pos/data/pos_receipt_views_data.xml new file mode 100644 index 000000000..2ffe49fad --- /dev/null +++ b/custom_receipts_for_pos/data/pos_receipt_views_data.xml @@ -0,0 +1,266 @@ + + + + + Design 1 + +
+ +
+
+ +
Tel:
+
+ +
:
+
+ +
+
+ +
+
+ + + + +
+
--------------------------------
+
Served by
+
+
+
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + + + + + +
ProductQtyAmount
+ + +
+ % discount +
+
+ +
+ +
+ + + +
+
+
+
+ + + +
+
Subtotal :
+ +
+ + +
+
+
+ +
+
+ TOTAL : + +
+ +
+ + ]]>
+
+ + Design 2 + +
+
+ Phone:
+
+ +
+
+ Date : + + + + + + +
+ Order :
+
+
+
+ Cashier :
+ + Customer : + +
+
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + + + + + +
ProductQtyAmount
+ + +
+ % discount +
+
+ +
+ +
+ + + +
+
+
+
+ + + +
+
Subtotal :
+ +
+ + +
+
+
+ +
+
+ TOTAL : + +
+

+
+ + +
+ + +
+
+
+
+ CHANGE : + +
+
+ + +
+ Discounts : + +
+
+ + +
+ + +
+
+
+ Total Taxes : + +
+
+ ]]>
+
+
\ No newline at end of file diff --git a/custom_receipts_for_pos/doc/RELEASE_NOTES.md b/custom_receipts_for_pos/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..89e164bd0 --- /dev/null +++ b/custom_receipts_for_pos/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 05.02.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial Commit for POS Receipt Design diff --git a/custom_receipts_for_pos/models/__init__.py b/custom_receipts_for_pos/models/__init__.py new file mode 100644 index 000000000..34f91d4b8 --- /dev/null +++ b/custom_receipts_for_pos/models/__init__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Sadique Kottekkat () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from .import pos_receipt +from .import pos_config +from .import res_config_settings +from .import pos_session + diff --git a/custom_receipts_for_pos/models/pos_config.py b/custom_receipts_for_pos/models/pos_config.py new file mode 100644 index 000000000..aa039b31a --- /dev/null +++ b/custom_receipts_for_pos/models/pos_config.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sadique Kottekkat () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import fields, models + + +class PosConfig(models.Model): + """ + This is an Odoo model for Point of Sale (POS). + It inherits from the 'pos.config' model and extends its functionality. + """ + _inherit = "pos.config" + + receipt_design = fields.Many2one('pos.receipt', + string="Receipt Design", + help="Choose any receipt design") + design_receipt = fields.Text(related='receipt_design.design_receipt', + string='Receipt XML') + is_custom_receipt = fields.Boolean(string='Is Custom Receipt', + help='Boolean indicating the receipt' + ' design is custom or not') diff --git a/custom_receipts_for_pos/models/pos_receipt.py b/custom_receipts_for_pos/models/pos_receipt.py new file mode 100644 index 000000000..97d10489d --- /dev/null +++ b/custom_receipts_for_pos/models/pos_receipt.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sadique Kottekkat () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import fields, models + + +class PosReceipt(models.Model): + """ + This is an Odoo model for Point of Sale (POS). + It creates a new model of pos.receipt for providing different types of + receipt design. + """ + _name = 'pos.receipt' + + name = fields.Char(string='Name', help='Name of the pos receipt') + design_receipt = fields.Text(string='Receipt XML', + help='Add your customised receipts for pos') diff --git a/custom_receipts_for_pos/models/pos_session.py b/custom_receipts_for_pos/models/pos_session.py new file mode 100644 index 000000000..3bf966e09 --- /dev/null +++ b/custom_receipts_for_pos/models/pos_session.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sadique Kottekkat () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import models + + +class PosSession(models.Model): + """ + This is an Odoo model for Point of Sale (POS) sessions. + It inherits from the 'pos.session' model and extends its functionality. + + Methods: _loader_params_product_product(): Adds the 'qty_available' + field to the search parameters for the product loader. + """ + _inherit = 'pos.session' + + def _loader_params_product_product(self): + """Function to load the product field to the product params""" + result = super()._loader_params_product_product() + result['search_params']['fields'].append('qty_available') + return result + + def _pos_ui_models_to_load(self): + """Function that super the ui models loading""" + result = super()._pos_ui_models_to_load() + result += [ + 'res.config.settings', + 'pos.receipt', + ] + return result + + def _loader_params_pos_receipt(self): + """Function that returns the product field pos Receipt""" + return { + 'search_params': { + 'fields': ['design_receipt', 'name'], + + }, + } + + def _get_pos_ui_pos_receipt(self, params): + """Used to Return the params value to the pos Receipts""" + return self.env['pos.receipt'].search_read(**params['search_params']) + + def _loader_params_res_config_settings(self): + """The Function used to returns the field value""" + return { + 'search_params': { + 'fields': ['pos_receipt_design'], + + }, + } + + def _get_pos_ui_res_config_settings(self, params): + """Function is used to returns the config settings value""" + return (self.env['res.config.settings'].search_read + (**params['search_params'])) diff --git a/custom_receipts_for_pos/models/res_config_settings.py b/custom_receipts_for_pos/models/res_config_settings.py new file mode 100644 index 000000000..0bf3f4e79 --- /dev/null +++ b/custom_receipts_for_pos/models/res_config_settings.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sadique Kottekkat () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import api, fields, models + + +class ResConfigSettings(models.TransientModel): + """ + This is an Odoo model for configuration settings. It inherits from the + 'res.config.settings' model and extends its functionality by adding + fields for custom receipt design configuration + """ + _inherit = 'res.config.settings' + + pos_receipt_design = fields.Many2one(related='pos_config_id.receipt_design', + string="Receipt Design", + help="Choose any receipt design", + compute='_compute_pos_is_custom_receipt', + readonly=False, store=True, + default=lambda self: self.env['pos.receipt'].search([], limit=1)) + pos_design_receipt = fields.Text(related='pos_config_id.design_receipt', + string='Receipt XML') + pos_is_custom_receipt = fields.Boolean(related='pos_config_id.' + 'is_custom_receipt', + readonly=False, store=True) + + @api.depends('pos_is_custom_receipt', 'pos_config_id') + def _compute_pos_is_custom_receipt(self): + """The compute function for finding the Receipt status""" + for res_config in self: + if res_config.pos_is_custom_receipt: + res_config.pos_receipt_design = res_config.pos_config_id.receipt_design + else: + res_config.pos_receipt_design = False diff --git a/custom_receipts_for_pos/security/ir.model.access.csv b/custom_receipts_for_pos/security/ir.model.access.csv new file mode 100644 index 000000000..4fe3ffc47 --- /dev/null +++ b/custom_receipts_for_pos/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_pos_receipt,access_pos_receipt,model_pos_receipt,base.group_user,1,1,1,1 + diff --git a/custom_receipts_for_pos/static/description/assets/icons/capture (1).png b/custom_receipts_for_pos/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/capture (1).png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/check.png b/custom_receipts_for_pos/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/check.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/chevron.png b/custom_receipts_for_pos/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/chevron.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/cogs.png b/custom_receipts_for_pos/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/cogs.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/consultation.png b/custom_receipts_for_pos/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/consultation.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/ecom-black.png b/custom_receipts_for_pos/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/ecom-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/education-black.png b/custom_receipts_for_pos/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/education-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/hotel-black.png b/custom_receipts_for_pos/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/hotel-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/img.png b/custom_receipts_for_pos/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/img.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/license.png b/custom_receipts_for_pos/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/license.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/lifebuoy.png b/custom_receipts_for_pos/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/lifebuoy.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/manufacturing-black.png b/custom_receipts_for_pos/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/manufacturing-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/photo-capture.png b/custom_receipts_for_pos/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/photo-capture.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/pos-black.png b/custom_receipts_for_pos/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/pos-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/puzzle.png b/custom_receipts_for_pos/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/puzzle.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/restaurant-black.png b/custom_receipts_for_pos/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/restaurant-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/service-black.png b/custom_receipts_for_pos/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/service-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/trading-black.png b/custom_receipts_for_pos/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/trading-black.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/training.png b/custom_receipts_for_pos/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/training.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/update.png b/custom_receipts_for_pos/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/update.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/user.png b/custom_receipts_for_pos/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/user.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/wrench.png b/custom_receipts_for_pos/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/wrench.png differ diff --git a/custom_receipts_for_pos/static/description/assets/misc/Cybrosys R.png b/custom_receipts_for_pos/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/misc/Cybrosys R.png differ diff --git a/custom_receipts_for_pos/static/description/assets/misc/email.svg b/custom_receipts_for_pos/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/phone.svg b/custom_receipts_for_pos/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/star (1) 2.svg b/custom_receipts_for_pos/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/support (1) 1.svg b/custom_receipts_for_pos/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/support-email.svg b/custom_receipts_for_pos/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/tick-mark.svg b/custom_receipts_for_pos/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/whatsapp 1.svg b/custom_receipts_for_pos/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/misc/whatsapp.svg b/custom_receipts_for_pos/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/modules/1.png b/custom_receipts_for_pos/static/description/assets/modules/1.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/1.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/2.png b/custom_receipts_for_pos/static/description/assets/modules/2.png new file mode 100644 index 000000000..6dffe78cc Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/2.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/3.png b/custom_receipts_for_pos/static/description/assets/modules/3.png new file mode 100644 index 000000000..998fe2c96 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/3.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/4.png b/custom_receipts_for_pos/static/description/assets/modules/4.png new file mode 100644 index 000000000..237d5d976 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/4.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/5.png b/custom_receipts_for_pos/static/description/assets/modules/5.png new file mode 100644 index 000000000..e1aa53f5c Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/5.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/6.png b/custom_receipts_for_pos/static/description/assets/modules/6.png new file mode 100644 index 000000000..237d5d976 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/6.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/1.png b/custom_receipts_for_pos/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..f18bfc7e3 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/1.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/2.png b/custom_receipts_for_pos/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..d9c91add7 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/2.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/3.png b/custom_receipts_for_pos/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..5a2ac916e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/3.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/4.png b/custom_receipts_for_pos/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..7f2ac97d8 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/4.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/5.png b/custom_receipts_for_pos/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..286f8d20d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/5.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/6.png b/custom_receipts_for_pos/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..e4649c71c Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/6.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/7.png b/custom_receipts_for_pos/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..348689554 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/7.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/hero.gif b/custom_receipts_for_pos/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..4cd82adab Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/hero.gif differ diff --git a/custom_receipts_for_pos/static/description/banner.png b/custom_receipts_for_pos/static/description/banner.png new file mode 100644 index 000000000..535b8aa14 Binary files /dev/null and b/custom_receipts_for_pos/static/description/banner.png differ diff --git a/custom_receipts_for_pos/static/description/icon.png b/custom_receipts_for_pos/static/description/icon.png new file mode 100644 index 000000000..9f5fcc5d4 Binary files /dev/null and b/custom_receipts_for_pos/static/description/icon.png differ diff --git a/custom_receipts_for_pos/static/description/index.html b/custom_receipts_for_pos/static/description/index.html new file mode 100644 index 000000000..e0d246f86 --- /dev/null +++ b/custom_receipts_for_pos/static/description/index.html @@ -0,0 +1,644 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ POS Receipt Designs

+

+ Option to select the customised Receipts for each POS. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Adding of Receipt Design.

+

User can add the receipt designs from the backend in the menu Receipt Designs. +

+
+
+
+
+
+
+ +
+
+

Choosing for Current Receipt Design.

+

User can choose whether the current pos needs custom receipt design. +

+
+
+
+
+
+
+ +
+
+

Choosing of Receipt in Frontend.

+

We can see that chosen receipt in frontend of the POS. +

+
+
+
+
+
+
+ +
+
+

Editing of Receipt Design.

+

We can edit the receipt design from the backend of the POS. +

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

+ Default Receipt of POS.

+
+
+

+ This is the default receipt of POS.

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

+ Receipt Designs

+
+
+

+ We can add the Receipt designs from the backend in the menu 'Receipt Designs'.

+
+
+
+
+
+
+ +
+
+

+ Choose receipt design for POS.

+
+
+

+ We can choose the receipt design for each POS from the backend of the pos.

+
+
+
+
+
+
+ +
+
+

+ Edit receipt designs for POS.

+
+
+

+ We can edit the receipt design from the backend of the POS.

+
+
+
+
+
+
+ + +
+
+

+ Chosen receipt in the frontend

+
+
+

+ We can see the chosen receipts for the POS in the frontend of the POS, It will vary as per we're choosing from the Backend for each POS.

+
+
+
+
+
+
+
    +
  • + User can add the receipt designs from the backend in the menu Receipt Designs. +
  • +
  • + Choosing of Receipt in Frontend. +
  • +
  • + User can choose whether the current pos needs custom receipt design. +
  • +
  • + We can edit the receipt design from the backend of the POS. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:05th Feb 2024 +
+

+ Initial Commit for POS Receipt Designs.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/custom_receipts_for_pos/static/src/js/receipt_design.js b/custom_receipts_for_pos/static/src/js/receipt_design.js new file mode 100644 index 000000000..f5f93d830 --- /dev/null +++ b/custom_receipts_for_pos/static/src/js/receipt_design.js @@ -0,0 +1,40 @@ +/** @odoo-module */ +import { OrderReceipt } from "@point_of_sale/app/screens/receipt_screen/receipt/order_receipt"; +import { patch } from "@web/core/utils/patch"; +import { Orderline } from "@point_of_sale/app/generic_components/orderline/orderline"; +import { useState, Component, xml } from "@odoo/owl"; +import { useService } from "@web/core/utils/hooks"; + +patch(OrderReceipt.prototype, { + setup(){ + super.setup(); + this.state = useState({ + template: true, + }) + this.pos = useState(useService("pos")); + }, + get templateProps() { + return { + data: this.props.data, + order: this.pos.orders, + receipt: this.pos.orders[0].export_for_printing(), + orderlines:this.pos.orders[0].get_orderlines(), + paymentlines:this.pos.orders[0].get_paymentlines() + } + }, + get templateComponent() { + var mainRef = this + return class extends Component { + setup() {} + static template = xml`${mainRef.pos.config.design_receipt}` + } + }, + get isTrue() { + if (this.env.services.pos.config.is_custom_receipt == false) { + return true + } + else { + return false + } + } +}); diff --git a/custom_receipts_for_pos/static/src/xml/receipt_design_template_views.xml b/custom_receipts_for_pos/static/src/xml/receipt_design_template_views.xml new file mode 100644 index 000000000..5fd310f54 --- /dev/null +++ b/custom_receipts_for_pos/static/src/xml/receipt_design_template_views.xml @@ -0,0 +1,14 @@ + + + + + + isTrue + + + + + + + + diff --git a/custom_receipts_for_pos/views/point_of_sale_views.xml b/custom_receipts_for_pos/views/point_of_sale_views.xml new file mode 100644 index 000000000..bb34d165d --- /dev/null +++ b/custom_receipts_for_pos/views/point_of_sale_views.xml @@ -0,0 +1,15 @@ + + + + + Receipt Designs + pos.receipt + tree,form + current + + + diff --git a/custom_receipts_for_pos/views/pos_config_views.xml b/custom_receipts_for_pos/views/pos_config_views.xml new file mode 100644 index 000000000..1ed8aa374 --- /dev/null +++ b/custom_receipts_for_pos/views/pos_config_views.xml @@ -0,0 +1,29 @@ + + + + + pos.config.view + pos.config + + + +
+
+ +
+
+
+
+
+
+
+
diff --git a/custom_receipts_for_pos/views/pos_receipt_views.xml b/custom_receipts_for_pos/views/pos_receipt_views.xml new file mode 100644 index 000000000..5e50b9ac5 --- /dev/null +++ b/custom_receipts_for_pos/views/pos_receipt_views.xml @@ -0,0 +1,27 @@ + + + + + pos.receipt.form + pos.receipt + +
+ + + + + + +
+
+
+ + pos.receipt + + + + + + +
\ No newline at end of file diff --git a/custom_receipts_for_pos/views/res_config_settings_views.xml b/custom_receipts_for_pos/views/res_config_settings_views.xml new file mode 100644 index 000000000..ea9a10853 --- /dev/null +++ b/custom_receipts_for_pos/views/res_config_settings_views.xml @@ -0,0 +1,36 @@ + + + + + res.config.settings.view.form.inherit.point_of_sale + res.config.settings + + + + +
+
+
+ +
+
+
+
+
+
+
+
+
\ No newline at end of file