Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions thermal_invoice_report/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3

Thermal Invoice Report
======================
* This app allows us to print thermal Invoices Report.

Configuration
=============
* No additional configurations needed

Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__

License
-------
General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)

Credits
-------
* Developer:
(v15) Swaroop N P,
(v16) Saleekha ,
(V17)Jumana Haseen,

Contact : [email protected]

Contacts
--------
* Mail Contact : [email protected]
* 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 <https://cybrosys.com/>`__

Further information
===================
HTML Description: `<static/description/index.html>`__
21 changes: 21 additions & 0 deletions thermal_invoice_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Jumana Haseen(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
45 changes: 45 additions & 0 deletions thermal_invoice_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Jumana Haseen(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': "Thermal Invoice Report",
'version': '18.0.1.0.0',
'summary': 'A Module For Printing Thermal Invoice',
'description': 'This app allows us to print thermal Invoices.',
'category': 'Accounting',
'author': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['base', 'account','sale'],
'data': [
'data/account_move_data.xml',
'report/account_move_reports.xml',
'report/account_move_templates.xml',
'report/sale_order_reports.xml',
'report/sale_order_templates.xml',
],
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions thermal_invoice_report/data/account_move_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Paper Format for thermal invoice report-->
<record id="paperformat_thermal_paper" model="report.paperformat">
<field name="name">Thermal Paper</field>
<field name="default" eval="True"/>
<field name="format">custom</field>
<field name="page_height">75</field>
<field name="page_width">58</field>
<field name="orientation">Portrait</field>
<field name="margin_top">1</field>
<field name="margin_bottom">0</field>
<field name="margin_left">0</field>
<field name="margin_right">0</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">35</field>
<field name="dpi">96</field>
</record>
</data>
</odoo>
6 changes: 6 additions & 0 deletions thermal_invoice_report/doc/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Module <thermal_invoice_report>

#### 11.01.2024
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Thermal Invoice Report
Binary file added thermal_invoice_report/i18n/es_EC.mo
Binary file not shown.
16 changes: 16 additions & 0 deletions thermal_invoice_report/report/account_move_reports.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- QWeb Reports -->
<record id="report_print_thermal_so_action" model="ir.actions.report">
<field name="name">Thermal Invoice</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">thermal_invoice_report.report_thermal</field>
<field name="report_file">thermal_invoice_report.report_thermal</field>
<field name="print_report_name">(object._get_report_base_filename())
</field>
<field name="binding_model_id" ref="account.model_account_move"/>
<field name="binding_type">report</field>
<field name="paperformat_id" ref="paperformat_thermal_paper"/>
</record>
</odoo>
123 changes: 123 additions & 0 deletions thermal_invoice_report/report/account_move_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Template of Thermal invoice report -->
<template id="report_thermal">
<t t-call="web.html_container">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="doc">
<link rel="stylesheet"
href="/thermal_invoice_report/static/src/css/thermal_style.css"/>
<center class="thermal-report-page">
<div class="my_container">
<div style="width: 45%;">
<img src='/web/binary/company_logo'
style="width:100%"/>
</div>
<p>
<span t-field="doc.company_id.company_details"/>
</p>
<div class="cntr">
--------------------------------------------------------------------
</div>
<br/>
<div class="my_section">
<div class="detail_section">
<b>Invoice No &#160; :
<span
t-field="doc.name"/>
</b>
<br/>
Customer &#160; &#160; :
<span
t-field="doc.partner_id"/>
<br/>
invoice Date :
<span
t-field="doc.invoice_date"/>
</div>
<div class="date_section">
Date :
<span
t-esc="context_timestamp(datetime.datetime.now()).strftime('%m/%d/%Y')"/>
<br/>
Time :
<span
t-esc="context_timestamp(datetime.datetime.now()).strftime('%I:%M:%p')"/>
</div>
</div>
<br/>
<div class="cntr">
--------------------------------------------------------------------
</div>
<br/>
<table class=" table my_product_table">
<tbody>
<tr>
<td>
<b>PRODUCT</b>
</td>
<td>
<b>QUANTITY</b>
</td>
<td>
<b>PRICE</b>
</td>
</tr>
<tr t-foreach="doc.invoice_line_ids"
t-as="a">
<td>
<span t-field="a.name"/>
<br/>
Discount :
<span
t-field="a.discount"/>
</td>
<td>
<span t-field="a.quantity"/>
</td>
<td>
<span t-field="a.price_unit"
t-options="{'widget': 'monetary', 'display_currency': doc.currency_id}"/>
</td>
</tr>
</tbody>
</table>
<div class="cntr">
--------------------------------------------------------------------
</div>
<br/>
<center style="width:90%;">
<table class="my_table">
<tbody>
<tr>
<td>Taxes</td>
<td>:</td>
<td>
<span
t-field="a.tax_ids"/>
</td>
</tr>
<tr>
<td>Total</td>
<td>:</td>
<td>
<span t-field="doc.amount_total"/>
</td>
</tr>
</tbody>
</table>
</center>
<div class="cntr">
--------------------------------------------------------------------
</div>
<center>
Thank You For Shopping With Us
<p class="cntr">-- *** --</p>
</center>
</div>
</center>
</t>
</t>
</t>
</template>
</odoo>
15 changes: 15 additions & 0 deletions thermal_invoice_report/report/sale_order_reports.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- QWeb Reports for Sale Order -->
<record id="report_print_thermal_sale_order_action" model="ir.actions.report">
<field name="name">Thermal Sale Order</field>
<field name="model">sale.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">thermal_invoice_report.report_thermal_sale_order</field>
<field name="report_file">thermal_invoice_report.report_thermal_sale_order</field>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="binding_model_id" ref="sale.model_sale_order"/>
<field name="binding_type">report</field>
<field name="paperformat_id" ref="paperformat_thermal_paper"/>
</record>
</odoo>
Loading