Skip to content

Commit

Permalink
FIX pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Sep 4, 2018
1 parent 2501d43 commit 64dcce8
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ virtualenv:


install:
- pip install -r requirements.txt
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
Expand Down
3 changes: 2 additions & 1 deletion l10n_ch_import_camt054/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
{
'name': 'CAMT 054 import and reconcile',
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'author': 'Monzione Marco',
'author': 'Monzione Marco, Odoo Community Association (OCA)',
'website': '...',
'category': 'Banking addons',
'depends': [
Expand Down
2 changes: 1 addition & 1 deletion l10n_ch_import_camt054/models/account_bank_statement.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# -*- coding: utf-8 -*-
from odoo import models


Expand Down
5 changes: 3 additions & 2 deletions l10n_ch_import_camt054/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class AccountBankStatementLine(models.Model):

def process_reconciliation(self, counterpart_aml_dicts=None,
payment_aml_rec=None, new_aml_dicts=None):
counterpart_moves = super(AccountBankStatementLine, self).process_reconciliation(
counterpart_aml_dicts, payment_aml_rec, new_aml_dicts)
counterpart_moves = super(
AccountBankStatementLine, self).process_reconciliation(
counterpart_aml_dicts, payment_aml_rec, new_aml_dicts)

if hasattr(self, 'acct_svcr_ref') and self.acct_svcr_ref:
for move_line in counterpart_moves.line_ids:
Expand Down
7 changes: 5 additions & 2 deletions l10n_ch_import_camt054/models/account_move_line.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from odoo import models, fields, api
# -*- coding: utf-8 -*-
# © 2017 Compassion CH <http://www.compassion.ch>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, fields


class accountMoveLine(models.Model):
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
# The new field would be use for an automatic reconciliation.
acct_svcr_ref = fields.Char()
1 change: 1 addition & 0 deletions l10n_ch_import_camt054/models/custom_import_stmt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from odoo import api, models

import base64
Expand Down
1 change: 1 addition & 0 deletions l10n_ch_import_camt054/models/custom_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import re

from odoo import models
Expand Down
1 change: 1 addition & 0 deletions l10n_ch_import_camt054/models/fds_postfinance_file_camt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from odoo import models, api

import base64
Expand Down
1 change: 1 addition & 0 deletions l10n_ch_import_camt054/tests/test_import_camt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import base64

from odoo.tests import TransactionCase
Expand Down
2 changes: 2 additions & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# To provide both the URL and a branch, use:
# sale-workflow https://github.com/OCA/sale-workflow branchname
bank-payment
bank-statement-import
l10n-switzerland https://github.com/CompassionCH/l10n-switzerland 10.0-mig-fds
queue
server-tools
account-financial-tools
2 changes: 1 addition & 1 deletion recurring_contract/models/contract_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _generate_invoices(self, invoicer=None):
for contract_group in self.filtered('next_invoice_date'):
# After a ContractGroup is done, we commit all writes in order to
# avoid doing it again in case of an error or a timeout
self.env.cr.commit()
self.env.cr.commit() # pylint: disable=invalid-commit
logger.info("Generating invoices for group {0}/{1}".format(
count, nb_groups))
month_delta = contract_group.advance_billing_months or 1
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pycrypto

0 comments on commit 64dcce8

Please sign in to comment.