Browse Source

[fix]travis

pull/365/head
aheficent 7 years ago
parent
commit
9920a66112
  1. 1
      bank_statement_reconciliation_summary/__manifest__.py
  2. 2
      bank_statement_reconciliation_summary/report/__init__.py
  3. 4
      bank_statement_reconciliation_summary/report/report.xml
  4. 4
      bank_statement_reconciliation_summary/report/summary_report.py
  5. 2
      bank_statement_reconciliation_summary/report/summary_report.xml

1
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)',

2
bank_statement_reconciliation_summary/report/__init__.py

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import summary_report
from . import summary_report

4
bank_statement_reconciliation_summary/report/report.xml

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<odoo>
<data>
<record id="summary_report_paperformat" model="report.paperformat">
@ -30,4 +30,4 @@
</record>
</data>
</openerp>
</odoo>

4
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()

2
bank_statement_reconciliation_summary/report/summary_report.xml

@ -217,4 +217,4 @@
</template>
</data>
</odoo>
</odoo>
Loading…
Cancel
Save