Reviewers: ,
Please review this at http://codereview.tryton.org/737002/ Affected files: M move.py Index: move.py =================================================================== --- a/move.py +++ b/move.py @@ -479,17 +479,16 @@ class Reconciliation(ModelSQL, ModelView def validate(cls, reconciliations): super(Reconciliation, cls).validate(reconciliations) cls.check_lines(reconciliations) @classmethod def check_lines(cls, reconciliations): Lang = Pool().get('ir.lang') for reconciliation in reconciliations: - amount = Decimal('0.0') debit = Decimal('0.0') credit = Decimal('0.0') account = None party = None for line in reconciliation.lines: if line.state != 'valid': cls.raise_user_error('reconciliation_line_not_valid', (line.rec_name,))
