diff --git a/custom_receipts_for_pos/README.rst b/custom_receipts_for_pos/README.rst new file mode 100644 index 000000000..2214e12c6 --- /dev/null +++ b/custom_receipts_for_pos/README.rst @@ -0,0 +1,40 @@ +.. 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 + +Custom Receipts for POS +=================== +Custom Receipts for POS + + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +v15 - Sajna @cybrosys + +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..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..bea1abf0d --- /dev/null +++ b/custom_receipts_for_pos/__manifest__.py @@ -0,0 +1,50 @@ +# -*- 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 . +# +############################################################################# +{ + 'name': 'Custom Receipts for POS', + 'version': '15.0.1.0.0', + 'summary': "Add Custom Receipt for each POS", + 'description': "It helps to create and select customised receipts for " + "each POS", + 'category': 'Point of Sale', + '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', + 'views/point_of_sale_view.xml', + 'views/pos_receipt_views.xml', + 'views/pos_config_views.xml' + ], + 'assets': { + 'point_of_sale.assets': [ + 'custom_receipts_for_pos/static/src/js/ReceiptScreen/order_receipt.js', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} 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..1dc66aacc --- /dev/null +++ b/custom_receipts_for_pos/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.04.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial Commit for Custom Receipts for POS diff --git a/custom_receipts_for_pos/models/__init__.py b/custom_receipts_for_pos/models/__init__.py new file mode 100644 index 000000000..00989751d --- /dev/null +++ b/custom_receipts_for_pos/models/__init__.py @@ -0,0 +1,23 @@ +# -*- 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 pos_receipt +from .import pos_config 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..7248bc2ea --- /dev/null +++ b/custom_receipts_for_pos/models/pos_config.py @@ -0,0 +1,37 @@ +# -*- 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 fields, models + + +class PosConfig(models.Model): + _inherit = "pos.config" + + """add field in pos config to select custom receipts""" + + 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', + help="Helps to get related receipt design") + is_custom_receipt = fields.Boolean(string='Is Custom Receipt', + help="Boolean field to enable the " + "custom receipt design") 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..6aca4cb8e --- /dev/null +++ b/custom_receipts_for_pos/models/pos_receipt.py @@ -0,0 +1,33 @@ +# -*- 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 fields, models + + +class PosReceipt(models.Model): + _name = 'pos.receipt' + _description = 'POS Receipt' + + """models that helps to create new custom receipts for POS""" + + name = fields.Char(string='Name', help='Name of the custom receipts') + design_receipt = fields.Text(string='Receipt XML', + help='Add your customised receipts for pos') 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/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/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/logo.png b/custom_receipts_for_pos/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/icons/logo.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/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/modules/budget_image.png b/custom_receipts_for_pos/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/budget_image.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/credit_image.png b/custom_receipts_for_pos/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/credit_image.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/employee_image.png b/custom_receipts_for_pos/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/employee_image.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/export_image.png b/custom_receipts_for_pos/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/export_image.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/gantt_image.png b/custom_receipts_for_pos/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/gantt_image.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/quotation_image.png b/custom_receipts_for_pos/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/quotation_image.png differ diff --git a/custom_receipts_for_pos/static/description/assets/modules/sales_discount.png b/custom_receipts_for_pos/static/description/assets/modules/sales_discount.png new file mode 100644 index 000000000..004c61a9e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/modules/sales_discount.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot1.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot1.png new file mode 100644 index 000000000..a37857286 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot1.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot11.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot11.png new file mode 100644 index 000000000..e531937f2 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot11.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot2.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot2.png new file mode 100644 index 000000000..93312f3e0 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot2.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot3.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot3.png new file mode 100644 index 000000000..fb5fc9c1e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot3.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot4.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot4.png new file mode 100644 index 000000000..2d2518bf5 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot4.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot7.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot7.png new file mode 100644 index 000000000..37b00ea71 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot7.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot9.png b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot9.png new file mode 100644 index 000000000..a900a8d68 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/gif/screenshot9.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..8cc4e145b 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/assets/screenshots/screenshot1.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..a37857286 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot1.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot10.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot10.png new file mode 100644 index 000000000..0d2c2ec14 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot10.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot11.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot11.png new file mode 100644 index 000000000..e531937f2 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot11.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot2.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..93312f3e0 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot2.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot3.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..fb5fc9c1e Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot3.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot4.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..2d2518bf5 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot4.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot5.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..d94065286 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot5.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot6.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..af72e5ce6 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot6.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot7.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..37b00ea71 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot7.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot8.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot8.png new file mode 100644 index 000000000..c17f17ecc Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot8.png differ diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot9.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot9.png new file mode 100644 index 000000000..a900a8d68 Binary files /dev/null and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot9.png differ diff --git a/custom_receipts_for_pos/static/description/banner.jpg b/custom_receipts_for_pos/static/description/banner.jpg new file mode 100644 index 000000000..e7985dc61 Binary files /dev/null and b/custom_receipts_for_pos/static/description/banner.jpg differ diff --git a/custom_receipts_for_pos/static/description/cybro_logo.png b/custom_receipts_for_pos/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/custom_receipts_for_pos/static/description/cybro_logo.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..ac2b370c6 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..e184e7d1f --- /dev/null +++ b/custom_receipts_for_pos/static/description/index.html @@ -0,0 +1,613 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Custom Receipts for POS

+

+ Option to select the customised Receipts for each POS.

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ In this module POS Receipt Design user can add receipt designs from the backend, and we can choose the receipt designs for each POS, + And we can view the different receipts for each POS.

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

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

+
+
+ +
+
+ +
+
+

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

+
+
+ +
+
+ +
+
+

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

+
+
+ +
+
+ +
+
+

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

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

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

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

Suggested 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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
diff --git a/custom_receipts_for_pos/static/src/js/ReceiptScreen/order_receipt.js b/custom_receipts_for_pos/static/src/js/ReceiptScreen/order_receipt.js new file mode 100644 index 000000000..6c1b89a88 --- /dev/null +++ b/custom_receipts_for_pos/static/src/js/ReceiptScreen/order_receipt.js @@ -0,0 +1,44 @@ +odoo.define('custom_receipts_for_pos.receipt',function(require){ + "use strict" + const Registries = require('point_of_sale.Registries'); + const OrderReceipt = require('point_of_sale.OrderReceipt'); + +// extending the pos receipt screen + const PosResOrderReceipt = OrderReceipt => + class extends OrderReceipt { + get receiptEnv() { + let receipt_render_env = super.receiptEnv; + let receipt = receipt_render_env.receipt; + var self=this; +// if there is a selected receipt in pos config replace that +// receipt with existing one + if(self.env.pos.config.is_custom_receipt){ + var receipt_design=self.env.pos.config.design_receipt + var order=self._receiptEnv.order; + var data={ + widget:self.env, + pos:order.pos, + order:order, + receipt:order.export_for_printing(), + orderlines:order.get_orderlines(), + paymentlines:order.get_paymentlines(), + moment:moment, + }; + var parser=new DOMParser(); + var xmlDoc=parser.parseFromString(receipt_design, + "text/xml"); + var s=new XMLSerializer(); + var newXmlStr=s.serializeToString(xmlDoc); + var qweb=new QWeb2.Engine(); + qweb.add_template('' + +newXmlStr+''); + receipt=qweb.render('receipt_design',data);$( + 'div.pos-receipt').replaceWith(receipt); + return receipt_render_env; + } + return receipt_render_env; + } + } + Registries.Component.extend(OrderReceipt, PosResOrderReceipt) + return OrderReceipt +}); \ No newline at end of file diff --git a/custom_receipts_for_pos/views/point_of_sale_view.xml b/custom_receipts_for_pos/views/point_of_sale_view.xml new file mode 100644 index 000000000..8d8d8d272 --- /dev/null +++ b/custom_receipts_for_pos/views/point_of_sale_view.xml @@ -0,0 +1,16 @@ + + + + + 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..e6b8c26b2 --- /dev/null +++ b/custom_receipts_for_pos/views/pos_config_views.xml @@ -0,0 +1,30 @@ + + + + + + pos.config.view.form.inherit.custom.receipts.for.pos + + pos.config + + + +
+
+ +
+
+
+
+
+
+
+
\ No newline at end of file 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..dd20c32ad --- /dev/null +++ b/custom_receipts_for_pos/views/pos_receipt_views.xml @@ -0,0 +1,29 @@ + + + + + pos.receipt.view.form.custom.receipts.for.pos + pos.receipt + +
+ + + + + + +
+
+
+ + pos.receipt.view.tree.custom.receipts.for.pos + pos.receipt + + + + + + +
\ No newline at end of file