Fix flake8

This commit is contained in:
Cédric Krier committed 2013-10-05 12:16:23 +02:00
1 parent 538b087aef
commit c0a859ab2e
4 files changed
+9 -9

No files matched your search

+6 -7
View File
@@ -2,7 +2,6 @@
#this repository contains the full copyright notices and license terms.
from decimal import Decimal
import datetime
import time
from itertools import groupby
from operator import itemgetter
from sql.aggregate import Sum
@@ -216,7 +215,6 @@ class Move(ModelSQL, ModelView):
@classmethod
def create(cls, vlist):
pool = Pool()
MoveLine = pool.get('account.move.line')
Sequence = pool.get('ir.sequence')
Journal = pool.get('account.journal')
@@ -401,7 +399,8 @@ class Reconciliation(ModelSQL, ModelView):
'reconciliation_different_accounts': ('You can not reconcile '
'line "%(line)s" because it\'s account "%(account1)s" is '
'different from "%(account2)s".'),
'reconciliation_account_no_reconcile': ('You can not reconcile '
'reconciliation_account_no_reconcile': (
'You can not reconcile '
'line "%(line)s" because it\'s account "%(account)s" is '
'configured as not reconcilable.'),
'reconciliation_different_parties': ('You can not reconcile '
@@ -569,14 +568,14 @@ class Line(ModelSQL, ModelView):
'add/modify lines in closed journal period "%s".'),
'modify_posted_move': ('You can not modify lines of move "%s" '
'because it is already posted.'),
'modify_reconciled': ('You can not modify line "%s" because it '
'is reconciled.'),
'modify_reconciled': ('You can not modify line "%s" because '
'it is reconciled.'),
'no_journal': ('Move line cannot be created because there is '
'no journal defined.'),
'move_view_account': ('You can not create a move line with '
'account "%s" because it is a view account.'),
'move_inactive_account': ('You can not create a move line with '
'account "%s" because it is inactive.'),
'move_inactive_account': ('You can not create a move line '
'with account "%s" because it is inactive.'),
'already_reconciled': 'Line "%s" (%d) already reconciled.',
})
-1
View File
@@ -127,7 +127,6 @@ class Party:
Company = pool.get('company.company')
User = pool.get('res.user')
Date = pool.get('ir.date')
cursor = Transaction().cursor
line = MoveLine.__table__()
account = Account.__table__()
+1 -1
View File
@@ -146,7 +146,7 @@ class Period(ModelSQL, ModelView):
'second': periods[0].rec_name,
})
if (self.post_move_sequence.company and
self.post_move_sequence.company != self.fiscalyear.company):
self.post_move_sequence.company != self.fiscalyear.company):
self.raise_user_error('check_move_sequence_company', {
'sequence': self.post_move_sequence.rec_name,
'period': self.rec_name,
+2
View File
@@ -2,3 +2,5 @@
#this repository contains the full copyright notices and license terms.
from .test_account import suite
__all__ = ['suite']