mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #178 from acsone/8.0-fix-attach-migration-sbi
[FIX] sepa attachments migration fix
This commit is contained in:
@@ -39,6 +39,8 @@ def migrate(cr, version):
|
||||
''')
|
||||
|
||||
for sepa_file in cr.dictfetchall():
|
||||
if not sepa_file['payment_order_id']:
|
||||
continue
|
||||
filename = 'sct_%s.xml' % sepa_file['reference'].replace('/', '-')
|
||||
pool['ir.attachment'].create(
|
||||
cr, SUPERUSER_ID, {
|
||||
|
||||
Reference in New Issue
Block a user