add C54 support

This commit is contained in:
Luc De Meyer 2020-06-21 18:31:57 +02:00
parent 05949d6094
commit 434d5c5a39
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Copyright 2009-2018 Noviat. # Copyright 2009-2020 Noviat.
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
from odoo import api, fields, models from odoo import api, fields, models
@ -48,7 +48,7 @@ class EbicsFileFormat(models.Model):
return ['FUL', 'CCT', 'CDD', 'CDB', 'XE2', 'XE3'] return ['FUL', 'CCT', 'CDD', 'CDB', 'XE2', 'XE3']
def _supported_download_order_types(self): def _supported_download_order_types(self):
return ['FDL', 'C52', 'C53'] return ['FDL', 'C52', 'C53', 'C54']
@api.model @api.model
def _selection_name(self): def _selection_name(self):

View File

@ -1,4 +1,4 @@
# Copyright 2009-2019 Noviat. # Copyright 2009-2020 Noviat.
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
""" """
@ -163,7 +163,7 @@ class EbicsXfer(models.TransientModel):
params = {} params = {}
if order_type == 'FDL': if order_type == 'FDL':
params['filetype'] = df.name params['filetype'] = df.name
if order_type in ['FDL', 'C52', 'C53']: if order_type in ['FDL', 'C52', 'C53', 'C54']:
params.update({ params.update({
'start': 'start':
self.date_from and self.date_from.isoformat() self.date_from and self.date_from.isoformat()