diff --git a/tax_invoice_report/__init__.py b/tax_invoice_report/__init__.py new file mode 100644 index 000000000..34c13870a --- /dev/null +++ b/tax_invoice_report/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Treesa Maria Jude() +# 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 . +# +############################################################################## + +import invoice_report diff --git a/tax_invoice_report/__manifest__.py b/tax_invoice_report/__manifest__.py new file mode 100644 index 000000000..4a290c224 --- /dev/null +++ b/tax_invoice_report/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Treesa Maria Jude() +# 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 . +# +############################################################################## + +{ + '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, +} diff --git a/tax_invoice_report/invoice_report.py b/tax_invoice_report/invoice_report.py new file mode 100644 index 000000000..8c971b2f6 --- /dev/null +++ b/tax_invoice_report/invoice_report.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Treesa Maria Jude() +# 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 . +# +############################################################################## + +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" diff --git a/tax_invoice_report/static/description/banner.jpg b/tax_invoice_report/static/description/banner.jpg new file mode 100644 index 000000000..4c95cc1d9 Binary files /dev/null and b/tax_invoice_report/static/description/banner.jpg differ diff --git a/tax_invoice_report/static/description/current.png b/tax_invoice_report/static/description/current.png new file mode 100644 index 000000000..12516209d Binary files /dev/null and b/tax_invoice_report/static/description/current.png differ diff --git a/tax_invoice_report/static/description/cybro_logo.png b/tax_invoice_report/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/tax_invoice_report/static/description/cybro_logo.png differ diff --git a/tax_invoice_report/static/description/icon.png b/tax_invoice_report/static/description/icon.png new file mode 100644 index 000000000..725066843 Binary files /dev/null and b/tax_invoice_report/static/description/icon.png differ diff --git a/tax_invoice_report/static/description/index.html b/tax_invoice_report/static/description/index.html new file mode 100644 index 000000000..250af0655 --- /dev/null +++ b/tax_invoice_report/static/description/index.html @@ -0,0 +1,100 @@ +
+
+

Tax Invoice Report

+

Tax Amount to Accounting Business Intelligence Report

+

Author : Cybrosys Techno Solutions , www.cybrosys.com

+
+
+ +
+
+
+

Overview

+

+ 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. +

+
+
+
+ +
+
+

Current Report Structure

+ +
+
+

Goto

+

Accounting -->Reports -->Business intelligence -->Invoices

+

Report are based on amount without tax. +

+
+ +
+
+
+
+
+ +
+
+

After Installation

+
+
+ +

Goto

+

Accounting -->Reports -->Business intelligence -->Invoices

+

Measures -->Total Tax/Total With Tax

+

Total Tax : Displays the Tax amount alone.

+

Total With Tax : Tax included amount. +

+
+ +
+
+
+
+
+ +
+
+

Invoice Based Report

+
+
+ +

Click on '+' --> Invoice Number

+

Generate the report for each invoices with their related tax amounts. +

+
+ +
+
+
+
+
+
+

Need Any Help?

+ +
diff --git a/tax_invoice_report/static/description/invoiceno.png b/tax_invoice_report/static/description/invoiceno.png new file mode 100644 index 000000000..b73477128 Binary files /dev/null and b/tax_invoice_report/static/description/invoiceno.png differ diff --git a/tax_invoice_report/static/description/taxreport.png b/tax_invoice_report/static/description/taxreport.png new file mode 100644 index 000000000..68bc48cde Binary files /dev/null and b/tax_invoice_report/static/description/taxreport.png differ