diff --git a/move.py b/move.py index 33a3333372..19453021f3 100644 --- a/move.py +++ b/move.py @@ -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.', }) diff --git a/party.py b/party.py index 1f7d5d9ff8..7b2015353e 100644 --- a/party.py +++ b/party.py @@ -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__() diff --git a/period.py b/period.py index 4869ebb792..7b651f324b 100644 --- a/period.py +++ b/period.py @@ -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, diff --git a/tests/__init__.py b/tests/__init__.py index e88190a9c2..24b6dac707 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,3 +2,5 @@ #this repository contains the full copyright notices and license terms. from .test_account import suite + +__all__ = ['suite']