Browse Source

[ADD] New Field: Customer Added

pull/29/head
SHEREEF PT 8 years ago
parent
commit
56c67afeb7
  1. 3
      pos_ticket/README.rst
  2. 6
      pos_ticket/__manifest__.py
  3. 41
      pos_ticket/__manifest__.py~
  4. 10
      pos_ticket/static/description/index.html
  5. BIN
      pos_ticket/static/description/pos_ticket.png
  6. 7
      pos_ticket/static/src/xml/pos_ticket_view.xml

3
pos_ticket/README.rst

@ -1,7 +1,8 @@
POS Ticket v10
==============
This module will add company logo & info in POS receipt
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
Credits
=======

6
pos_ticket/__manifest__.py

@ -22,9 +22,9 @@
##############################################################################
{
'name': 'Company Logo In POS Receipt',
'summary': """Add Company Logo & Info to POS Ticket""",
'version': '10.0.1.0.0',
'description': """Add company logo and info to pos ticket""",
'summary': """Add Company Logo , Info & Customer name to POS Ticket""",
'version': '10.0.1.1',
'description': """Add Company Logo , Info & Customer name to POS Ticket""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',

41
pos_ticket/__manifest__.py~

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# 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/>.
#
##############################################################################
{
'name': 'Company Logo In POS Receipt',
'summary': """Add Company Logo & Info to POS Ticket""",
'version': '10.0.1.0.0',
'description': """Add company logo and info 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',
'data': [],
'qweb': ['static/src/xml/pos_ticket_view.xml'],
'images': ['static/description/banner.jpg'],
'demo': [],
'installable': True,
'auto_install': False,
}

10
pos_ticket/static/description/index.html

@ -2,7 +2,7 @@
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">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">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
</div>
</section>
<section class="oe_container">
@ -23,7 +23,7 @@
<h4 class="oe_slogan">POS Receipt</h4>
<div class="oe_span12">
<p class='oe_mt32'>
&#x261B; POS receipt with company logo and info<br>
&#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">
@ -37,13 +37,13 @@
<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="http://www.cybrosys.com"><i
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="http://www.cybrosys.com/contact/"><i
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="http://www.cybrosys.com/odoo-customization-and-installation/"><i
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>

BIN
pos_ticket/static/description/pos_ticket.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 38 KiB

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

@ -5,10 +5,13 @@
<div class="pos-sale-ticket">
<div>
<div style="width: 55%; float: left; padding: 20px 0px;">
<t t-if="widget.pos.company.phone">
Phone: <t t-esc="widget.pos.company.phone || ''"/><br />
<t t-if="order.get_client()">
Customer: <t t-esc="order.get_client().name"/><br />
</t>
Cashier: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br />
<t t-if="widget.pos.company.phone">
Phone: <t t-esc="widget.pos.company.phone || ''"/><br />
</t>
<t t-esc="order.name"/>
<t t-esc="moment().format('L LT')"/>
</div>

Loading…
Cancel
Save