mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-14 22:55:38 +00:00
11.0 account_ebics - add camt 052 and 054 support
This commit is contained in:
@@ -78,7 +78,8 @@ class EbicsFile(models.Model):
|
||||
if ff in ff_methods:
|
||||
if ff_methods[ff].get('unlink'):
|
||||
ff_methods[ff]['unlink'](ebics_file)
|
||||
# remove bank statements
|
||||
elif ff[:7] == 'camt.05' and ff_methods[ff[:8]].get('unlink'):
|
||||
ff_methods[ff[:8]]['unlink'](self)
|
||||
ebics_file.bank_statement_ids.unlink()
|
||||
return super(EbicsFile, self).unlink()
|
||||
|
||||
@@ -101,6 +102,10 @@ class EbicsFile(models.Model):
|
||||
res = ff_methods[ff]['process'](self)
|
||||
self.state = 'done'
|
||||
return res
|
||||
elif ff[:7] == 'camt.05' and ff_methods[ff[:8]].get('process'):
|
||||
res = ff_methods[ff[:8]]['process'](self)
|
||||
self.state = 'done'
|
||||
return res
|
||||
else:
|
||||
return self._process_undefined_format()
|
||||
|
||||
|
Reference in New Issue
Block a user