diff --git a/point_of_sale_logo/README.rst b/point_of_sale_logo/README.rst new file mode 100755 index 000000000..55b7761bc --- /dev/null +++ b/point_of_sale_logo/README.rst @@ -0,0 +1,43 @@ +Point of Sale Logo v13 +====================== +This module helps you to set a logo for every point of sale. This will help you to +identify the point of sale easily. You can also see this logo in pos screen and pos receipt + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Jesni Banu @ cybrosys + Niyas Raphy@cybrosys + Version 13: Nimisha Murali@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/point_of_sale_logo/__init__.py b/point_of_sale_logo/__init__.py new file mode 100755 index 000000000..b6ce483db --- /dev/null +++ b/point_of_sale_logo/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models + diff --git a/point_of_sale_logo/__manifest__.py b/point_of_sale_logo/__manifest__.py new file mode 100755 index 000000000..d54559002 --- /dev/null +++ b/point_of_sale_logo/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': 'Point of Sale Logo', + 'version': '13.0.1.0.0', + 'summary': """Logo For Every Point of Sale (Screen & Receipt)""", + 'description': """"This module helps you to set a logo for every point of sale. This will help you to + identify the point of sale easily. You can also see this logo in pos screen and pos receipt.""", + 'category': 'Point Of Sale', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'depends': ['base', 'point_of_sale'], + 'data': [ + 'views/pos_config_image_view.xml', + 'views/pos_image_view.xml', + ], + 'qweb': ['static/src/xml/pos_ticket_view.xml', + 'static/src/xml/pos_screen_image_view.xml'], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'demo': [], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/point_of_sale_logo/doc/RELEASE_NOTES.md b/point_of_sale_logo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..9826a76f6 --- /dev/null +++ b/point_of_sale_logo/doc/RELEASE_NOTES.md @@ -0,0 +1,9 @@ +## Module + +#### 18.10.2019 +#### Version 13.0.1.0.0 +#### ADD +Initial commit for Point of Sale Logo + + + diff --git a/point_of_sale_logo/models/__init__.py b/point_of_sale_logo/models/__init__.py new file mode 100755 index 000000000..27dd874c2 --- /dev/null +++ b/point_of_sale_logo/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import pos_config_image + diff --git a/point_of_sale_logo/models/pos_config_image.py b/point_of_sale_logo/models/pos_config_image.py new file mode 100755 index 000000000..a323feb38 --- /dev/null +++ b/point_of_sale_logo/models/pos_config_image.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class PosConfigImage(models.Model): + _inherit = 'pos.config' + + image = fields.Binary(string='Image') diff --git a/point_of_sale_logo/static/description/banner.png b/point_of_sale_logo/static/description/banner.png new file mode 100644 index 000000000..97d6c5041 Binary files /dev/null and b/point_of_sale_logo/static/description/banner.png differ diff --git a/point_of_sale_logo/static/description/cybro_logo.png b/point_of_sale_logo/static/description/cybro_logo.png new file mode 100755 index 000000000..bb309114c Binary files /dev/null and b/point_of_sale_logo/static/description/cybro_logo.png differ diff --git a/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-1.png b/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-1.png new file mode 100755 index 000000000..1ad45ef3b Binary files /dev/null and b/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-1.png differ diff --git a/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-2.png b/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-2.png new file mode 100755 index 000000000..faffd39cc Binary files /dev/null and b/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-2.png differ diff --git a/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-3.png b/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-3.png new file mode 100755 index 000000000..060b24d2b Binary files /dev/null and b/point_of_sale_logo/static/description/cybrosys-point-of -sale-logo-3.png differ diff --git a/point_of_sale_logo/static/description/icon.png b/point_of_sale_logo/static/description/icon.png new file mode 100644 index 000000000..08cd31943 Binary files /dev/null and b/point_of_sale_logo/static/description/icon.png differ diff --git a/point_of_sale_logo/static/description/index.html b/point_of_sale_logo/static/description/index.html new file mode 100755 index 000000000..3133b2ad9 --- /dev/null +++ b/point_of_sale_logo/static/description/index.html @@ -0,0 +1,351 @@ + +
+
+

+ Point of Sale Logo +

+

+ Logo For Every Point of Sale +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies +
+
+
+
+ +
+
+

+ Overview +

+

+ This module helps you to set a logo for every point of sale. This will help you to + identify the point of sale easily. You can also see this logo in pos screen and pos receipt. +

+
+
+
+
+
+
+

+ Features +

+

+ + Logo for each point of sale. +

+

+ + Logo in pos screen. +

+

+ + Logo in pos receipt. +

+
+
+ +
+
+

+ Screenshots +

+

+ + Point of Sale -> Configuration -> Point of Sale +

+
    +
  • + Here you can set logo for your point of sale. +
  • +
  • + Note:- Please choose the image with the dimension "width:76px;height:47px" for better output. +
  • +
+
+ +
+
+ +
+

+ + POS receipt with point of sale logo and name +

+
+ +
+
+
+ +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
diff --git a/point_of_sale_logo/static/description/main.png b/point_of_sale_logo/static/description/main.png new file mode 100755 index 000000000..1ad45ef3b Binary files /dev/null and b/point_of_sale_logo/static/description/main.png differ diff --git a/point_of_sale_logo/static/description/parcel_config.png b/point_of_sale_logo/static/description/parcel_config.png new file mode 100755 index 000000000..faffd39cc Binary files /dev/null and b/point_of_sale_logo/static/description/parcel_config.png differ diff --git a/point_of_sale_logo/static/description/parcel_rcpt.png b/point_of_sale_logo/static/description/parcel_rcpt.png new file mode 100755 index 000000000..060b24d2b Binary files /dev/null and b/point_of_sale_logo/static/description/parcel_rcpt.png differ diff --git a/point_of_sale_logo/static/description/pos_screen.png b/point_of_sale_logo/static/description/pos_screen.png new file mode 100755 index 000000000..074489896 Binary files /dev/null and b/point_of_sale_logo/static/description/pos_screen.png differ diff --git a/point_of_sale_logo/static/src/js/pos_image_field.js b/point_of_sale_logo/static/src/js/pos_image_field.js new file mode 100755 index 000000000..7f1eba7e5 --- /dev/null +++ b/point_of_sale_logo/static/src/js/pos_image_field.js @@ -0,0 +1,38 @@ +odoo.define("point_of_sale_logo.image", function (require) { + "use strict"; + var PosBaseWidget = require('point_of_sale.chrome'); + var screens = require('point_of_sale.screens'); + var core = require('web.core'); + + var QWeb = core.qweb; + console.log("PosBaseWidget", PosBaseWidget) + screens.ReceiptScreenWidget.include({ + render_receipt: function () { + this._super(this); + var order = this.pos.get_order() + this.$('.pos-receipt-container').html(QWeb.render('OrderReceipt',{ + widget:this, + a2 : window.location.origin + '/web/image?model=pos.config&field=image&id='+this.pos.config.id, + order: order, + receipt: order.export_for_printing(), + orderlines: order.get_orderlines(), + paymentlines: order.get_paymentlines(), + })); + }, + }); + PosBaseWidget.Chrome.include({ + renderElement:function () { + + var self = this; + console.log("self:", self) + + if(self.pos.config){ + if(self.pos.config.image){ + this.flag = 1 + this.a3 = window.location.origin + '/web/image?model=pos.config&field=image&id='+self.pos.config.id; + } + } + this._super(this); + } + }); +}); \ No newline at end of file diff --git a/point_of_sale_logo/static/src/xml/pos_screen_image_view.xml b/point_of_sale_logo/static/src/xml/pos_screen_image_view.xml new file mode 100755 index 000000000..8f989334a --- /dev/null +++ b/point_of_sale_logo/static/src/xml/pos_screen_image_view.xml @@ -0,0 +1,23 @@ + + + + +
+
+ + + + + + + + +
+
+ + +
+
+
+
+
\ No newline at end of file diff --git a/point_of_sale_logo/static/src/xml/pos_ticket_view.xml b/point_of_sale_logo/static/src/xml/pos_ticket_view.xml new file mode 100755 index 000000000..10dabaf18 --- /dev/null +++ b/point_of_sale_logo/static/src/xml/pos_ticket_view.xml @@ -0,0 +1,21 @@ + + + + +
+ + + + + + +
+
+ +
+
+
+ +
+
+
diff --git a/point_of_sale_logo/views/pos_config_image_view.xml b/point_of_sale_logo/views/pos_config_image_view.xml new file mode 100755 index 000000000..f5a8a0528 --- /dev/null +++ b/point_of_sale_logo/views/pos_config_image_view.xml @@ -0,0 +1,15 @@ + + + + + pos.config.inherit.form + pos.config + + + + + + + + + \ No newline at end of file diff --git a/point_of_sale_logo/views/pos_image_view.xml b/point_of_sale_logo/views/pos_image_view.xml new file mode 100755 index 000000000..569dfccf6 --- /dev/null +++ b/point_of_sale_logo/views/pos_image_view.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file