mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] copy with empty messages in direct debits
This commit is contained in:
@@ -242,6 +242,10 @@ class transaction(models.mem_bank_transaction):
|
||||
for i in range(0, len(self.message), 32)
|
||||
]
|
||||
self.reference = self.remote_owner
|
||||
|
||||
if not parts:
|
||||
return
|
||||
|
||||
if self.reference.startswith('KN: '):
|
||||
self.reference = self.reference[4:]
|
||||
if parts[0] == self.reference:
|
||||
|
||||
Reference in New Issue
Block a user