diff --git a/account_ebics/__manifest__.py b/account_ebics/__manifest__.py index 083987d..bfafdb0 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -1,9 +1,9 @@ -# Copyright 2009-2024 Noviat. +# Copyright 2009-2025 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). { "name": "EBICS banking protocol", - "version": "16.0.1.10.3", + "version": "16.0.2.0.0", "license": "LGPL-3", "author": "Noviat", "website": "https://www.noviat.com/", diff --git a/account_ebics/migrations/16.0.2/post-migration.py b/account_ebics/migrations/16.0.2/post-migration.py new file mode 100644 index 0000000..2c5b89e --- /dev/null +++ b/account_ebics/migrations/16.0.2/post-migration.py @@ -0,0 +1,15 @@ +# Copyright 2009-2025 Noviat. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +def migrate(cr, version): + cr.execute( # pylint: disable=E8103 + """ + UPDATE ebics_file ef + SET state = 'done' + FROM ebics_file_format eff + WHERE ef.format_id = eff.id + AND eff.type = 'down' + AND eff.download_process_method IS NULL; + """ + ) diff --git a/account_ebics/models/ebics_file.py b/account_ebics/models/ebics_file.py index 9035535..a84b5cd 100644 --- a/account_ebics/models/ebics_file.py +++ b/account_ebics/models/ebics_file.py @@ -1,4 +1,4 @@ -# Copyright 2009-2024 Noviat. +# Copyright 2009-2025 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). import base64 @@ -36,7 +36,10 @@ class EbicsFile(models.Model): format_id = fields.Many2one( comodel_name="ebics.file.format", string="EBICS File Formats", readonly=True ) - type = fields.Selection(related="format_id.type", readonly=True) + download_process_method = fields.Selection( + related="format_id.download_process_method" + ) + type = fields.Selection(related="format_id.type") date_from = fields.Date( readonly=True, help="'Date From' as entered in the download wizard." ) diff --git a/account_ebics/views/ebics_config_views.xml b/account_ebics/views/ebics_config_views.xml index 15735fe..0534487 100644 --- a/account_ebics/views/ebics_config_views.xml +++ b/account_ebics/views/ebics_config_views.xml @@ -1,4 +1,4 @@ - + diff --git a/account_ebics/views/ebics_file_format_views.xml b/account_ebics/views/ebics_file_format_views.xml index e677d3c..026887d 100644 --- a/account_ebics/views/ebics_file_format_views.xml +++ b/account_ebics/views/ebics_file_format_views.xml @@ -1,89 +1,89 @@ - + - - ebics.file.format.tree - ebics.file.format - - - - - - - - - - - + + ebics.file.format.tree + ebics.file.format + + + + + + + + + + + - - ebics.file.format.form - ebics.file.format - -
- - - - - - + ebics.file.format.form + ebics.file.format + + + + + + + + - - - - - + + + + - - - - - - - - - - - - - - - -
+ + + + + + + +
- - EBICS File Formats - ebics.file.format - tree,form - + + EBICS File Formats + ebics.file.format + tree,form +
diff --git a/account_ebics/views/ebics_file_views.xml b/account_ebics/views/ebics_file_views.xml index 4261ccc..62e09a4 100644 --- a/account_ebics/views/ebics_file_views.xml +++ b/account_ebics/views/ebics_file_views.xml @@ -1,4 +1,4 @@ - + @@ -73,9 +73,10 @@
+
- - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/account_ebics/views/ebics_userid_views.xml b/account_ebics/views/ebics_userid_views.xml index cf6c874..df69d7b 100644 --- a/account_ebics/views/ebics_userid_views.xml +++ b/account_ebics/views/ebics_userid_views.xml @@ -1,4 +1,4 @@ - + diff --git a/account_ebics/views/menu.xml b/account_ebics/views/menu.xml index 1ad1b0c..0ac9cee 100644 --- a/account_ebics/views/menu.xml +++ b/account_ebics/views/menu.xml @@ -1,4 +1,4 @@ - +