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

45
pos_ticket/static/description/index.html

@ -1,10 +1,11 @@
<section class="oe_container"> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan">Company Logo In POS Receipt</h2> <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> <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> </div>
</section> </section>
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<div class="oe_span12"> <div class="oe_span12">
@ -12,26 +13,44 @@
</div> </div>
<p class="oe_mt32" style="margin-left:48px;"> <p class="oe_mt32" style="margin-left:48px;">
Currently in Odoo POS receipt there is no company logo. 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> </p>
</div> </div>
</div> </div>
</section> </section>
<section> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced oe_dark"> <div class="oe_row oe_spaced">
<h4 class="oe_slogan">POS Receipt</h4> <h2 class="oe_slogan" style="color:#875A7B;">Receipt</h2>
<div class="oe_span12"> <div class="col-md-5">
<p class='oe_mt32'> <img class="oe_picture oe_screenshot" src="old_receipt.png"/>
&#x261B; POS receipt with company logo, company info and customer name<br> </div>
</p> <div class="col-md-2" style="top:50px;color:green">
<div class="oe_row_img oe_centered"> <i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
<img class="oe_picture oe_screenshot" src="pos_ticket.png">
</div> </div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="new_receipt_pos.png"/>
</div> </div>
</div> </div>
</section> </section>
<section class="oe_container">
<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"> <section class="oe_container">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> <h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;"> <div class="oe_slogan" style="margin-top:10px !important;">

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"?> <?xml version="1.0" encoding="UTF-8"?>
<templates id="point_of_sale.template" xml:space="preserve"> <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-extend="PosTicket">
<t t-jquery='.pos-sale-ticket' t-operation='replace'> <t t-jquery='.pos-sale-ticket' t-operation='replace'>
<div class="pos-sale-ticket"> <div class="pos-sale-ticket">

Loading…
Cancel
Save