add placeholder logic to add pain.002 processing logic

This commit is contained in:
Luc De Meyer
2020-12-09 21:48:58 +01:00
parent e7eaf68c59
commit 8df50b526c
2 changed files with 21 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ class EbicsFile(models.Model):
'camt.054':
{'process': self._process_camt054,
'unlink': self._unlink_camt054},
'pain.002':
{'process': self._process_pain002,
'unlink': self._unlink_pain002},
}
return res
@@ -341,6 +344,23 @@ class EbicsFile(models.Model):
"""
pass
@staticmethod
def _process_pain002(self):
"""
Placeholder for processing pain.002 files.
TODO:
add import logic based upon OCA 'account_payment_return_import'
"""
pass
@staticmethod
def _unlink_pain002(self):
"""
Placeholder for pain.002 specific actions before removing the
EBICS data file.
"""
raise NotImplementedError
def _process_undefined_format(self):
raise UserError(_(
"The current version of the 'account_ebics' module "