Merge pull request #39 from acsone/7.0-mt940-no-footer-sbi

[IMP] support MT940 without footer record at end of file
This commit is contained in:
Pedro M. Baeza
2014-09-23 11:52:56 +02:00

View File

@@ -101,6 +101,12 @@ class MT940(object):
record_line = line
except StopIteration:
pass
if self.current_statement:
if record_line:
self.handle_record(cr, record_line)
record_line = ''
self.statements.append(self.current_statement)
self.current_statement = None
return self.statements
def append_continuation_line(self, cr, line, continuation_line):