diff --git a/custom_receipts_for_pos/__manifest__.py b/custom_receipts_for_pos/__manifest__.py index 4c6124aa8..c144d7c90 100644 --- a/custom_receipts_for_pos/__manifest__.py +++ b/custom_receipts_for_pos/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'POS Receipt Design', - 'version': '16.0.1.0.0', + 'version': '16.0.1.0.1', 'summary': """Option to select the customised Receipts for each POS""", 'description': "Option to select the customised Receipts for each POS", 'category': 'Point of Sale', diff --git a/custom_receipts_for_pos/data/pos_receipt_views_data.xml b/custom_receipts_for_pos/data/pos_receipt_views_data.xml index 493b9554b..1fc884339 100644 --- a/custom_receipts_for_pos/data/pos_receipt_views_data.xml +++ b/custom_receipts_for_pos/data/pos_receipt_views_data.xml @@ -4,6 +4,11 @@ Design 1 + + +
+
@@ -120,6 +125,11 @@ Design 2 + + +
+

Phone:
diff --git a/custom_receipts_for_pos/doc/RELEASE_NOTES.md b/custom_receipts_for_pos/doc/RELEASE_NOTES.md index e0b84d1d2..33edf8ef8 100644 --- a/custom_receipts_for_pos/doc/RELEASE_NOTES.md +++ b/custom_receipts_for_pos/doc/RELEASE_NOTES.md @@ -6,3 +6,7 @@ Initial Commit for POS Receipt Designs. +#### 06.09.2024 +#### Version 16.0.1.0.1 +#### BUGFIX +- Fixed the missing company logo in the pos receipts when printing. diff --git a/custom_receipts_for_pos/models/pos_config.py b/custom_receipts_for_pos/models/pos_config.py index 1aad2a6fb..5aeefef6f 100644 --- a/custom_receipts_for_pos/models/pos_config.py +++ b/custom_receipts_for_pos/models/pos_config.py @@ -27,6 +27,10 @@ from odoo import fields, models class PosConfig(models.Model): _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') + 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') + logo = fields.Binary(related='company_id.logo', string='Logo', + readonly=False) diff --git a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot5.png b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot5.png index d94065286..599cd10d0 100644 Binary files a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot5.png 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 index af72e5ce6..50e769d52 100644 Binary files a/custom_receipts_for_pos/static/description/assets/screenshots/screenshot6.png and b/custom_receipts_for_pos/static/description/assets/screenshots/screenshot6.png differ