Browse Source

[ADD] Initial Commit

pull/30/merge
SHEREEF PT 8 years ago
parent
commit
4972fb716d
  1. 24
      tax_invoice_report/__init__.py
  2. 42
      tax_invoice_report/__manifest__.py
  3. 43
      tax_invoice_report/invoice_report.py
  4. BIN
      tax_invoice_report/static/description/banner.jpg
  5. BIN
      tax_invoice_report/static/description/current.png
  6. BIN
      tax_invoice_report/static/description/cybro_logo.png
  7. BIN
      tax_invoice_report/static/description/icon.png
  8. 100
      tax_invoice_report/static/description/index.html
  9. BIN
      tax_invoice_report/static/description/invoiceno.png
  10. BIN
      tax_invoice_report/static/description/taxreport.png

24
tax_invoice_report/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://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 <https://www.gnu.org/licenses/>.
#
##############################################################################
import invoice_report

42
tax_invoice_report/__manifest__.py

@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://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 <https://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Tax Invoice Report',
'version': '10.0.1.0',
'summary': 'Tax Amount to Accounting Business Intelligence Report',
'description': 'Total taxable amount to the accounting report',
'category': 'Accounting',
'author': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions',
'depends': [
'base', 'account',
],
'data': [],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

43
tax_invoice_report/invoice_report.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://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 <https://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import fields, models
class AccountInvoiceReport(models.Model):
_inherit = 'account.invoice.report'
tax_amount = fields.Float(string='Total Tax', readonly=True)
total_amount = fields.Float(string='Total With Tax', readonly=True)
number = fields.Char(string='Invoice Number')
def _select(self):
return super(AccountInvoiceReport, self)._select() \
+ ", sub.tax_amount as tax_amount,sub.total_amount as total_amount,sub.number"
def _sub_select(self):
return super(AccountInvoiceReport, self)._sub_select() \
+ ",ai.amount_tax as tax_amount, ai.amount_total as total_amount,ai.number as number"
def _group_by(self):
return super(AccountInvoiceReport, self)._group_by() + ", ai.number"

BIN
tax_invoice_report/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
tax_invoice_report/static/description/current.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
tax_invoice_report/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
tax_invoice_report/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

100
tax_invoice_report/static/description/index.html

@ -0,0 +1,100 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Tax Invoice Report</h2>
<h3 class="oe_slogan">Tax Amount to Accounting Business Intelligence Report</h3>
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h2 class="oe_slogan">Overview</h2>
<p class="oe_mt32">
Currently, Odoo provides accounting business intelligence reports based on
'Total Without Tax'.Hence user could not get the taxable amount. This
module allows getting 'Total Tax' and 'Total With Tax' amounts.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Current Report Structure</h2>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h4>Goto</h4>
<h4> Accounting -->Reports -->Business intelligence -->Invoices</h4>
<p>Report are based on amount without tax.
</p>
<div class="oe_row_img oe_centered">
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="current.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">After Installation</h2>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h4>Goto</h4>
<h4> Accounting -->Reports -->Business intelligence -->Invoices</h4>
<h4>Measures -->Total Tax/Total With Tax</h4>
<p>Total Tax : Displays the Tax amount alone.</p>
<p>Total With Tax : Tax included amount.
</p>
<div class="oe_row_img oe_centered">
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="taxreport.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container ">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Invoice Based Report</h2>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h4>Click on '+' --> Invoice Number</h4>
<p>Generate the report for each invoices with their related tax amounts.
</p>
<div class="oe_row_img oe_centered">
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="invoiceno.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<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
tax_invoice_report/static/description/invoiceno.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
tax_invoice_report/static/description/taxreport.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Loading…
Cancel
Save