Commit Graph

32 Commits (e6a8b97d5c7e03298f0bc57cc38a148d9b46a0a5)

Author SHA1 Message Date
Florian da Costa e6a8b97d5c [IMP] attachment synchronize : when importing files from a remote server :
If one task is failing, keep processing the others
Commit fir attachment imported after each file to be sure not to loose any data, when deleting on remote after import for example
2024-04-24 17:40:15 +02:00
clementmbr 97dd5cf84a [IMP] remove unnecessary comments 2024-01-26 15:38:18 -03:00
Florian da Costa f81893b43f [FIX] make file import work with sshfs + fix import and renaming/moving files even if the path ends with the folder separator 2023-12-27 14:49:25 +01:00
Florian da Costa deaa0b805f [MIG] attachment_synchronize : Migration to v16 2023-09-07 11:17:48 +02:00
Núria Sancho e863dd09f7 [14.0][FIX] storage_backend: fix read 2023-09-07 11:17:48 +02:00
Kevin Khao 7bf4c8a831 [IMP] Avoid using deprecated function _list, _delete and replace appropriately 2023-09-07 11:17:48 +02:00
Kevin Khao ea321d71ef [14.0][MIG] attachment_synchronize: migration to 14.0 2023-09-07 11:17:48 +02:00
Kevin Khao 3ef953ad91 [IMP] attachment_synchronize: pre-commit 2023-09-07 11:17:48 +02:00
Sébastien BEAU c296c71c74 [REF] make menu more consistent
In normal tree view duplicate and archive can be done throught the
action menu. So we only need to show this button when this tree view
are included in a form using a o2m or m2m.
So this visibility can be activated by passing value in the context

Also make the copy consitent whatever way you do it
2023-09-07 11:17:48 +02:00
Sébastien BEAU 751047e64b [IMP] add smart boutton on form view and action button with metric on tree view 2023-09-07 11:17:48 +02:00
Sébastien BEAU e5c210661a [REF] refactor code, rename enabled to active, and simplifie run code 2023-09-07 11:17:48 +02:00
clementmbr 90f06097eb [FIX] duplicate ids in attachment_synchronize_task_views and flake8 2023-09-07 11:17:48 +02:00
clementmbr 2e4a769d8a [UPD] attachment_synchronize readme 2023-09-07 11:17:48 +02:00
clementmbr 76997202a4 [IMP] rename task emails into failure_emails and improve tasks views 2023-09-07 11:17:48 +02:00
clementmbr 46c2629e3f [IMP] Add smart button to related Tasks from Storage Backend 2023-09-07 11:17:48 +02:00
clementmbr eb7de0e8fe [IMP] task_id readonly if method_type import 2023-09-07 11:17:48 +02:00
clementmbr cacacc99fb [IMP] rename check_duplicated_files and improve Task views 2023-09-07 11:17:48 +02:00
clementmbr 81462638a6 [IMP] task run_export + onchange link method_type and file_type if export 2023-09-07 11:17:48 +02:00
clementmbr 5779a547c6 [IMP] attachment_synchronize: rename files + add buttonbox task enabled 2023-09-07 11:17:48 +02:00
clementmbr adb4a524b2 [IMP] Add attachment_synchronize_task views 2023-09-07 11:17:48 +02:00
clementmbr 7bd7c02c89 [FIX] attachment_synchronize: fix tests
- correct `directory_output` value

- mute logger for desired raise exception

- change how the "already imported files" are checked when
"check_duplicated_files = True" :
It occurs that a task o2m field `attachment_ids` returns an empty record
when checked during the `_file_to_import()` method... but only when
the module `autovacuum_message_attachment` is installed !
2023-09-07 11:17:48 +02:00
David Beal f597b71ddb IMP add button to duplicate task or unactive them, add readme fragments 2023-09-07 11:17:48 +02:00
Sébastien BEAU c616a4a6ee [REF] run black 2023-09-07 11:17:48 +02:00
Sébastien BEAU da74f9a7a5 [REF] refactor code and add test 2023-09-07 11:17:48 +02:00
Sébastien BEAU 75d7af3137 [REF] start cleanning 2023-09-07 11:17:48 +02:00
Florian da Costa d91060157d Allow to send mail notification if attachment linked to task fail 2023-09-07 11:17:48 +02:00
Giovanni 31e608993b - fix check_duplicated_files in view
- log info on run completed
2023-09-07 11:17:48 +02:00
Giovanni 84f3e8dcca - use filtered.mapped in place of search 2023-09-07 11:17:48 +02:00
Giovanni 810aba129a - check for duplicates
- prefer enabled in place of active
2023-09-07 11:17:48 +02:00
Giovanni 1c2b4b7b6b - pass pattern to _list 2023-09-07 11:17:48 +02:00
Giovanni 945e3f5279 - better view layout
- match pattern filename to download
- empty list as default domain
2023-09-07 11:17:48 +02:00
Florian da Costa f022064a47 Migrate and refactore external_file_location 2023-09-07 11:17:48 +02:00