From 3623fa28fb8cbfc500cf4cf74814fc12d6abafe7 Mon Sep 17 00:00:00 2001 From: Risvana Cybro Date: Fri, 8 Aug 2025 20:20:48 +0530 Subject: [PATCH] Aug 08: [FIX] Bug Fixed 'point_of_sale_logo' --- point_of_sale_logo/__manifest__.py | 5 +++-- point_of_sale_logo/doc/RELEASE_NOTES.md | 5 +++++ point_of_sale_logo/models/pos_config.py | 8 ++++++++ .../static/src/xml/receipt_header_logo.xml | 18 ++++++++++++++++++ ...eceipt_logo.xml => receipt_screen_logo.xml} | 9 ++++----- point_of_sale_logo/views/pos_config_views.xml | 14 +++++++++++--- 6 files changed, 49 insertions(+), 10 deletions(-) create mode 100755 point_of_sale_logo/static/src/xml/receipt_header_logo.xml rename point_of_sale_logo/static/src/xml/{receipt_logo.xml => receipt_screen_logo.xml} (63%) mode change 100755 => 100644 diff --git a/point_of_sale_logo/__manifest__.py b/point_of_sale_logo/__manifest__.py index dee50abf7..25f990902 100755 --- a/point_of_sale_logo/__manifest__.py +++ b/point_of_sale_logo/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': 'Point of Sale Logo', - 'version': '18.0.1.0.0', + 'version': '18.0.2.1.1', 'category': 'Point of Sale', 'summary': "Logo For Every Point of Sale (Screen & Receipt)", 'description': "This module helps you to set a logo for every POS" @@ -36,7 +36,8 @@ 'assets': { 'point_of_sale._assets_pos': [ 'point_of_sale_logo/static/src/xml/navbar_logo.xml', - 'point_of_sale_logo/static/src/xml/receipt_logo.xml' + 'point_of_sale_logo/static/src/xml/receipt_header_logo.xml', + 'point_of_sale_logo/static/src/xml/receipt_screen_logo.xml', ], }, 'images': ['static/description/banner.jpg'], diff --git a/point_of_sale_logo/doc/RELEASE_NOTES.md b/point_of_sale_logo/doc/RELEASE_NOTES.md index 5edde1057..bddbdfa80 100644 --- a/point_of_sale_logo/doc/RELEASE_NOTES.md +++ b/point_of_sale_logo/doc/RELEASE_NOTES.md @@ -5,3 +5,8 @@ #### ADD - Initial commit for Point of Sale Logo + +#### 07.08.2025 +#### Version 18.0.2.1.1 +#### UPDT +- Introduced a configurable logo feature for POS receipts, allowing users to select between displaying the POS logo, the company logo, or both. diff --git a/point_of_sale_logo/models/pos_config.py b/point_of_sale_logo/models/pos_config.py index 2f7542c67..9a96464b8 100755 --- a/point_of_sale_logo/models/pos_config.py +++ b/point_of_sale_logo/models/pos_config.py @@ -28,3 +28,11 @@ class PosConfig(models.Model): image = fields.Binary(string='Image', help="Set logo image for viewing it" "in POS Screen and Receipt") + logo_option = fields.Selection( + selection=[ + ('pos', 'Show POS Logo Only'), + ('company', 'Show Company Logo Only'), + ('both', 'Show Both POS and Company Logos')], + string="Receipt Logo Option", + default='pos', + help="Choose which logo(s) to display on the printed POS receipt.") diff --git a/point_of_sale_logo/static/src/xml/receipt_header_logo.xml b/point_of_sale_logo/static/src/xml/receipt_header_logo.xml new file mode 100755 index 000000000..d610b9d66 --- /dev/null +++ b/point_of_sale_logo/static/src/xml/receipt_header_logo.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/point_of_sale_logo/static/src/xml/receipt_logo.xml b/point_of_sale_logo/static/src/xml/receipt_screen_logo.xml old mode 100755 new mode 100644 similarity index 63% rename from point_of_sale_logo/static/src/xml/receipt_logo.xml rename to point_of_sale_logo/static/src/xml/receipt_screen_logo.xml index 08e2325a7..b5d44768a --- a/point_of_sale_logo/static/src/xml/receipt_logo.xml +++ b/point_of_sale_logo/static/src/xml/receipt_screen_logo.xml @@ -1,14 +1,13 @@ - - + + - - - + \ No newline at end of file diff --git a/point_of_sale_logo/views/pos_config_views.xml b/point_of_sale_logo/views/pos_config_views.xml index 837fe0f0e..c6f49bd3d 100755 --- a/point_of_sale_logo/views/pos_config_views.xml +++ b/point_of_sale_logo/views/pos_config_views.xml @@ -7,9 +7,17 @@ pos.config - - - + +
+ + +
+ +
+
+
+