diff --git a/bank_statement_reconciliation_summary/__manifest__.py b/bank_statement_reconciliation_summary/__manifest__.py index 45b7d6d0..055d5a55 100644 --- a/bank_statement_reconciliation_summary/__manifest__.py +++ b/bank_statement_reconciliation_summary/__manifest__.py @@ -7,6 +7,7 @@ 'category': 'Account', 'summary': 'Bank Statement Reconciliation Summary', 'version': '10.0.1.0.0', + 'license': 'AGPL-3', 'author': 'Eficent, ' 'Serpent Consulting Services Pvt. Ltd.,' 'Odoo Community Association (OCA)', diff --git a/bank_statement_reconciliation_summary/report/__init__.py b/bank_statement_reconciliation_summary/report/__init__.py index cd53ea7e..922e2253 100644 --- a/bank_statement_reconciliation_summary/report/__init__.py +++ b/bank_statement_reconciliation_summary/report/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import summary_report +from . import summary_report diff --git a/bank_statement_reconciliation_summary/report/report.xml b/bank_statement_reconciliation_summary/report/report.xml index 101712e2..d8e024b0 100644 --- a/bank_statement_reconciliation_summary/report/report.xml +++ b/bank_statement_reconciliation_summary/report/report.xml @@ -1,5 +1,5 @@ - + @@ -30,4 +30,4 @@ - + diff --git a/bank_statement_reconciliation_summary/report/summary_report.py b/bank_statement_reconciliation_summary/report/summary_report.py index 2fe18834..efe1d9ff 100644 --- a/bank_statement_reconciliation_summary/report/summary_report.py +++ b/bank_statement_reconciliation_summary/report/summary_report.py @@ -3,7 +3,7 @@ # Copyright 2016 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import time -from odoo import api, models, _ +from odoo import api, models class SummaryReport(models.AbstractModel): @@ -71,7 +71,7 @@ class SummaryReport(models.AbstractModel): amount_field = 'balance' query = """ SELECT sum(%s) FROM account_move_line - WHERE account_id=%%s + WHERE account_id=%%s AND date<=%%s""" % (amount_field,) self.env.cr.execute(query, (bank_account.id, end_date)) query_results = self.env.cr.dictfetchall() diff --git a/bank_statement_reconciliation_summary/report/summary_report.xml b/bank_statement_reconciliation_summary/report/summary_report.xml index 10b01797..f65ff5d7 100644 --- a/bank_statement_reconciliation_summary/report/summary_report.xml +++ b/bank_statement_reconciliation_summary/report/summary_report.xml @@ -217,4 +217,4 @@ - \ No newline at end of file +