details:   https://code.tryton.org/tryton/commit/d05be8c270ac
branch:    default
user:      Cédric Krier <[email protected]>
date:      Wed Nov 04 16:11:06 2026 +0100
description:
        Use empty string as value for file to delete without prefix

        The FileStore accepts only strings as prefix.

        Closes #15216
diffstat:

 trytond/trytond/ir/filestore.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c6520525a35a -r d05be8c270ac trytond/trytond/ir/filestore.py
--- a/trytond/trytond/ir/filestore.py   Wed Nov 04 16:07:16 2026 +0100
+++ b/trytond/trytond/ir/filestore.py   Wed Nov 04 16:11:06 2026 +0100
@@ -75,7 +75,7 @@
                     where=fields.SQL_OPERATORS['in'](
                         file_id_col, deleted_ids)))
             active_ids.update(r[0] for r in cursor)
-            to_remove[prefix].extend(deleted_ids - active_ids)
+            to_remove[prefix or ''].extend(deleted_ids - active_ids)
 
         for store_prefix, to_delete in to_remove.items():
             filestore.delete_many(to_delete, prefix=store_prefix)

Reply via email to