mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-14 06:35:36 +00:00
[IMP] account_ebics: hide process button on ebics_file when no download process
This commit is contained in:
15
account_ebics/migrations/16.0.2/post-migration.py
Normal file
15
account_ebics/migrations/16.0.2/post-migration.py
Normal file
@@ -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;
|
||||
"""
|
||||
)
|
Reference in New Issue
Block a user