diff --git a/custom_receipts_for_pos/README.rst b/custom_receipts_for_pos/README.rst new file mode 100644 index 000000000..7f073575f --- /dev/null +++ b/custom_receipts_for_pos/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS Receipt Design +================== +Option to select the customised Receipts for each POS + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V14) Syamili K, + (V15) Sajna Sherin T, + (V16 & V17) Sadique Kottekkat + (V18) Sreerag PM +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: ``__ diff --git a/custom_receipts_for_pos/__init__.py b/custom_receipts_for_pos/__init__.py new file mode 100644 index 000000000..9c87f6005 --- /dev/null +++ b/custom_receipts_for_pos/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sreerag PM () +# +# 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 models diff --git a/custom_receipts_for_pos/__manifest__.py b/custom_receipts_for_pos/__manifest__.py new file mode 100644 index 000000000..466b882c1 --- /dev/null +++ b/custom_receipts_for_pos/__manifest__.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sreerag PM () +# +# 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': '18.0.1.0.0', + 'category': 'Point of Sale', + 'summary': "Customize POS receipts with unique templates for each POS in " + "Odoo 18", + 'description': "Option to select the customised Receipts for each POS. So, " + "we can easily updated the Receipt 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_design1_data.xml', + 'data/pos_receipt_design2_data.xml', + 'views/pos_receipt_views.xml', + 'views/pos_config_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/order_receipt.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_design1_data.xml b/custom_receipts_for_pos/data/pos_receipt_design1_data.xml new file mode 100644 index 000000000..41ac9529c --- /dev/null +++ b/custom_receipts_for_pos/data/pos_receipt_design1_data.xml @@ -0,0 +1,154 @@ + + + + + Design 1 + + + +
+
+
+ +
+
+ +
Tel:
+
+ +
:
+
+ +
+
+ +
+
+ + + + +
+
--------------------------------
+
Served by
+
+
+
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ProductQtyAmount
+ + +
+ % discount +
+
+ +
+ +
+ + + +
+ + +
+ % discount +
+
+ +
+ +
+ + + +
+
+
+
+ + +
+
+ Subtotal : + +
+ + +
+ + +
+
+
+ +
+
+ TOTAL : + +
+

+
+ ]]>
+
+ +
\ No newline at end of file diff --git a/custom_receipts_for_pos/data/pos_receipt_design2_data.xml b/custom_receipts_for_pos/data/pos_receipt_design2_data.xml new file mode 100644 index 000000000..417f5b420 --- /dev/null +++ b/custom_receipts_for_pos/data/pos_receipt_design2_data.xml @@ -0,0 +1,188 @@ + + + + + Design 2 + + + +
+
+
+
+ Phone:
+
+
+
+ Date : + + + + + + +
+ Order :
+
+
+
+ Cashier :
+ + Customer : + +
+
+
+ +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ProductQtyAmount
+ + +
+ % discount +
+
+ +
+ +
+ + + +
+ + +
+ % 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..7f75ad886 --- /dev/null +++ b/custom_receipts_for_pos/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 30.10.2024 +#### Version 18.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..69297df57 --- /dev/null +++ b/custom_receipts_for_pos/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sreerag PM () +# +# 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 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..3fe2e26cb --- /dev/null +++ b/custom_receipts_for_pos/models/pos_config.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sreerag PM () +# +# 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 the 'pos.config' model to add new fields. + """ + _inherit = 'pos.config' + + receipt_design_id = fields.Many2one('pos.receipt', string='Receipt Design', + help='Choose any receipt design') + design_receipt = fields.Text(related='receipt_design_id.design_receipt', + string='Receipt XML') + logo = fields.Binary(related='company_id.logo', string='Logo', + readonly=False) + is_custom_receipt = fields.Boolean(string='Is Custom Receipt', + help='Indicates 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..ed9991629 --- /dev/null +++ b/custom_receipts_for_pos/models/pos_receipt.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sreerag PM () +# +# 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' + _description = 'POS Receipts' + + 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..d360d71d1 --- /dev/null +++ b/custom_receipts_for_pos/models/pos_session.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sreerag PM () +# +# 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 _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']) 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..9ebdf4572 --- /dev/null +++ b/custom_receipts_for_pos/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_pos_receipt_user,access.pos.receipt.user,model_pos_receipt,base.group_user,1,1,1,1 diff --git a/custom_receipts_for_pos/static/description/assets/cybro-icon.png b/custom_receipts_for_pos/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/cybro-icon.png differ diff --git a/custom_receipts_for_pos/static/description/assets/cybro-odoo.png b/custom_receipts_for_pos/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/cybro-odoo.png differ diff --git a/custom_receipts_for_pos/static/description/assets/h2.png b/custom_receipts_for_pos/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/h2.png differ diff --git a/custom_receipts_for_pos/static/description/assets/hero.gif b/custom_receipts_for_pos/static/description/assets/hero.gif new file mode 100644 index 000000000..f68f39836 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/hero.gif differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/arrows-repeat.svg b/custom_receipts_for_pos/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-1.png b/custom_receipts_for_pos/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/banner-1.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-2.svg b/custom_receipts_for_pos/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-bg.png b/custom_receipts_for_pos/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/banner-bg.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-bg.svg b/custom_receipts_for_pos/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-call.svg b/custom_receipts_for_pos/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-mail.svg b/custom_receipts_for_pos/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-pattern.svg b/custom_receipts_for_pos/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/banner-promo.svg b/custom_receipts_for_pos/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/brand-pair.svg b/custom_receipts_for_pos/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/close-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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/collabarate-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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/cybro-logo.png b/custom_receipts_for_pos/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/cybro-logo.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/down.svg b/custom_receipts_for_pos/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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/faq.png b/custom_receipts_for_pos/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/faq.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/feature-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/feature.png b/custom_receipts_for_pos/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/feature.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/gear.svg b/custom_receipts_for_pos/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/hero.gif b/custom_receipts_for_pos/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/hero.gif differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/hire-odoo.svg b/custom_receipts_for_pos/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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/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/life-ring-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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/mail.svg b/custom_receipts_for_pos/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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/notes.png b/custom_receipts_for_pos/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/notes.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/notification icon.svg b/custom_receipts_for_pos/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/odoo-consultancy.svg b/custom_receipts_for_pos/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/odoo-licencing.svg b/custom_receipts_for_pos/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/odoo-logo.png b/custom_receipts_for_pos/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/odoo-logo.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/patter.svg b/custom_receipts_for_pos/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/pattern1.png b/custom_receipts_for_pos/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/pattern1.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-piece-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/replace-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/screenshot-main.png b/custom_receipts_for_pos/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/screenshot-main.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/screenshot.png b/custom_receipts_for_pos/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/screenshot.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/skype-fill.svg b/custom_receipts_for_pos/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/skype.png b/custom_receipts_for_pos/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/skype.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/skype.svg b/custom_receipts_for_pos/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/star-1.svg b/custom_receipts_for_pos/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/star-2.svg b/custom_receipts_for_pos/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_receipts_for_pos/static/description/assets/icons/support.png b/custom_receipts_for_pos/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/support.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/test-1 - Copy.png b/custom_receipts_for_pos/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/test-1 - Copy.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/test-1.png b/custom_receipts_for_pos/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/test-1.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/test-2.png b/custom_receipts_for_pos/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/test-2.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/translate.svg b/custom_receipts_for_pos/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/video.png b/custom_receipts_for_pos/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/video.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/whatsapp.png b/custom_receipts_for_pos/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/whatsapp.png differ diff --git a/custom_receipts_for_pos/static/description/assets/icons/wrench-icon.svg b/custom_receipts_for_pos/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/custom_receipts_for_pos/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/modules/1.gif b/custom_receipts_for_pos/static/description/assets/modules/1.gif new file mode 100755 index 000000000..ae3a880a2 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/1.gif differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/2.gif b/custom_receipts_for_pos/static/description/assets/modules/2.gif new file mode 100755 index 000000000..d19e2b352 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/2.gif 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 100755 index 000000000..8513873ea 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 100755 index 000000000..3bedf7981 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 100755 index 000000000..0e311ca87 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.jpg b/custom_receipts_for_pos/static/description/assets/modules/6.jpg new file mode 100755 index 000000000..67c7f7062 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/6.jpg 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..d834b335c 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..e69a74988 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..1077daf66 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..5fec830a7 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..73c28ad33 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..627c15105 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..9fe9c5645 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/y18.jpg b/custom_receipts_for_pos/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/y18.jpg 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..0cd7e58c2 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..3c6c96651 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..846322b19 --- /dev/null +++ b/custom_receipts_for_pos/static/description/index.html @@ -0,0 +1,1160 @@ + + + + + + POS Receipt Designs + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

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

+

POS Receipt Designs +

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

Key + Highlights

+
+
+
+
+ +
+
+ Adding of Receipt Design. +
+

+

+
+
+
+
+
+ +
+
+ Choosing for Current Receipt Design. +
+

+

+
+
+
+
+
+ +
+
+ Choosing of Receipt in Frontend. +
+

+

+
+
+
+
+
+ +
+
+ Editing of Receipt Design. +
+

+

+
+
+
+
+ +
+
+
+ POS Receipt Designs +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ 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. +

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

+ + +

+
+
+

+ +

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

+ "Create POS Receipt Designs from + the Backend. +

+
+
+

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

+
+
+
+
+
+
+
+ +
+

+ Choosing of Receipt in + Frontend.

+
+
+

+ Empower users to choose + customized receipt designs on + the go from the POS interface. +

+
+
+
+
+
+
+
+ +
+

+ Enable Custom Receipt Designs + for POS. +

+
+
+

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

+
+
+
+
+
+
+
+ +
+

+ Edit POS Receipt Designs from + the Backend +

+
+
+

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

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

+ Yes, each POS + location can have + its own custom + receipt design. When + setting up each POS, + you can choose a + specific receipt + design for that + location +

+
+
+ +
+ +
+

+ Yes, you can edit + receipt designs in + the backend without + interrupting POS + operations. Changes + are applied only + after the design is + saved, allowing + seamless updates and + customizations. +

+
+
+ +
+ +
+

+ Currently, a + real-time preview + feature is not + available, but you + can test the design + by selecting it in + the backend and + printing sample + receipts to see how + they will look in + the POS frontend. +

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

+ Latest Release 18.0.1.0.0 +

+ + 30th October, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + 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..e9eea23c7 --- /dev/null +++ b/custom_receipts_for_pos/static/src/js/receipt_design.js @@ -0,0 +1,44 @@ +/** @odoo-module */ +import { OrderReceipt } from "@point_of_sale/app/screens/receipt_screen/receipt/order_receipt"; +import { patch } from "@web/core/utils/patch"; +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")); + const templateProps = { + data: this.props.data, + order: this.pos.get_order(), + receipt: this.pos.get_order().export_for_printing(), + orderlines: this.pos.get_order().get_orderlines(), + paymentlines: this.pos.get_order().export_for_printing().paymentlines + }; + }, + get templateProps() { + return { + data: this.props.data, + order: this.pos.get_order(), + receipt: this.pos.get_order().export_for_printing(), + orderlines: this.pos.get_order().get_orderlines(), + paymentlines: this.pos.get_order().export_for_printing().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; + } + return false; + } +}); diff --git a/custom_receipts_for_pos/static/src/xml/order_receipt.xml b/custom_receipts_for_pos/static/src/xml/order_receipt.xml new file mode 100644 index 000000000..61606e743 --- /dev/null +++ b/custom_receipts_for_pos/static/src/xml/order_receipt.xml @@ -0,0 +1,168 @@ + + + + + +
+ + + + + +
  • + + +
  • +
      +
    • + + Lot Number + + + SN + +
    • +
    +
    +
    + + +
    --------
    +
    +
    + TOTAL + +
    + +
    + Rounding + +
    +
    To Pay + +
    +
    +
    +
    + + + +
    + + +
    +
    + CHANGE + +
    + + + + +
    + Discounts + +
    +
    +
    + + TAX% + Tax + Base + Total + + + + % + + + + + + + + + + + +
    + +