Browse Source

[FIX] Chnaged Div

pull/30/merge
SHEREEF PT 8 years ago
parent
commit
3e54203ecf
  1. 6
      pos_ticket/README.rst
  2. 6
      pos_ticket/__init__.py
  3. 12
      pos_ticket/__manifest__.py
  4. 7
      pos_ticket/doc/changelog.rst
  5. 95
      pos_ticket/static/description/index.html
  6. BIN
      pos_ticket/static/description/new_pos_logo.png
  7. BIN
      pos_ticket/static/description/new_receipt_pos.png
  8. BIN
      pos_ticket/static/description/old_pos_logo.png
  9. BIN
      pos_ticket/static/description/old_receipt.png
  10. BIN
      pos_ticket/static/description/pos_ticket.png
  11. 7
      pos_ticket/static/src/xml/pos_ticket_view.xml

6
pos_ticket/README.rst

@ -2,11 +2,13 @@ POS Ticket v10
==============
This module will add company logo & company info in POS receipt. Also it will print the customer name
in the receipt if the customer is selected
in the receipt if the customer is selected.
Default POS logo will be replaced by the company logo in POS status bar
Credits
=======
Cybrosys Techno Solutions
Author
------
* Cybrosys Techno Solutions <http://www.cybrosys.com>
* Niyas Raphy <niyas@cybrosys.in>

6
pos_ticket/__init__.py

@ -2,8 +2,8 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<http://www.cybrosys.com>)
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Niyas Raphy(<niyas@cybrosys.in>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
@ -17,6 +17,6 @@
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################

12
pos_ticket/__manifest__.py

@ -2,8 +2,8 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<http://www.cybrosys.com>)
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Niyas Raphy(<niyas@cybrosys.in>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
@ -17,20 +17,20 @@
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Company Logo In POS Receipt',
'summary': """Add Company Logo , Info & Customer name to POS Ticket""",
'version': '10.0.1.1',
'summary': """Add Company Logo, Info & Customer name to POS Ticket""",
'version': '10.0.1.2',
'description': """Add Company Logo , Info & Customer name to POS Ticket""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'category': 'Point Of Sale',
'depends': ['base', 'point_of_sale'],
'license': 'AGPL-3',
'license': 'LGPL-3',
'data': [],
'qweb': ['static/src/xml/pos_ticket_view.xml'],
'images': ['static/description/banner.jpg'],

7
pos_ticket/doc/changelog.rst

@ -0,0 +1,7 @@
Changelog
=========
`10.0.1.2`
----------
- t-extend="Chrome" div changed to company logo

95
pos_ticket/static/description/index.html

@ -1,10 +1,11 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Company Logo In POS Receipt</h2>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Company Logo In POS Receipt</h2>
<h3 class="oe_slogan">Company logo and info will be displayed in POS receipt</h3>
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a></h4>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
@ -12,48 +13,66 @@
</div>
<p class="oe_mt32" style="margin-left:48px;">
Currently in Odoo POS receipt there is no company logo.
This module adds the company logo to the POS receipt so that the users will get more information about the company from the receipt.
This module adds the company logo to the POS receipt so that the users will get more information about
the company from the receipt. Also replace the default POS logo in the Status bar with Company logo
</p>
</div>
</div>
</section>
<section>
<div class="oe_row oe_spaced oe_dark">
<h4 class="oe_slogan">POS Receipt</h4>
<div class="oe_span12">
<p class='oe_mt32'>
&#x261B; POS receipt with company logo, company info and customer name<br>
</p>
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="pos_ticket.png">
</div>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Receipt</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="old_receipt.png"/>
</div>
<div class="col-md-2" style="top:50px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="new_receipt_pos.png"/>
</div>
</div>
</section>
<section class="oe_container">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">POS Logo</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="old_pos_logo.png"/>
</div>
<div class="col-md-2" style="top:50px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="new_pos_logo.png"/>
</div>
</div>
</section>
<section class="oe_container">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>

BIN
pos_ticket/static/description/new_pos_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
pos_ticket/static/description/new_receipt_pos.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
pos_ticket/static/description/old_pos_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
pos_ticket/static/description/old_receipt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
pos_ticket/static/description/pos_ticket.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

7
pos_ticket/static/src/xml/pos_ticket_view.xml

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="point_of_sale.template" xml:space="preserve">
<t t-extend="Chrome">
<t t-jquery='.pos-branding' t-operation='replace'>
<img src='/web/binary/company_logo' style="width: 3%;padding: 2px 8px 0px 13px;float: left;"/>
<span class="placeholder-UsernameWidget" style="float: left;padding-top: 19px;color: #fff;"></span>
</t>
</t>
<t t-extend="PosTicket">
<t t-jquery='.pos-sale-ticket' t-operation='replace'>
<div class="pos-sale-ticket">

Loading…
Cancel
Save