-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][MIG] fs_attachment: Migration to 18.0 #403
base: 18.0
Are you sure you want to change the base?
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 67671a4 - Browse repository at this point
Copy the full SHA 67671a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c26cc6 - Browse repository at this point
Copy the full SHA 4c26cc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d84d0c - Browse repository at this point
Copy the full SHA 8d84d0cView commit details -
[IMP] fs_attachment: Declares maintainer
Also fix typo into summary
Configuration menu - View commit details
-
Copy full SHA for 3806c92 - Browse repository at this point
Copy the full SHA 3806c92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 324fa5e - Browse repository at this point
Copy the full SHA 324fa5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 204ee54 - Browse repository at this point
Copy the full SHA 204ee54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7675e61 - Browse repository at this point
Copy the full SHA 7675e61View commit details -
[IMP] fs_attachment: Speedup install
Avoid recompute of new columns when installed on an existing database
Configuration menu - View commit details
-
Copy full SHA for d98405e - Browse repository at this point
Copy the full SHA d98405eView commit details -
[IMP] fs_attachment: Server Environement support
Allows to provide configuration parameters through server environement files.
Configuration menu - View commit details
-
Copy full SHA for 62e1b7f - Browse repository at this point
Copy the full SHA 62e1b7fView commit details -
[IMP] fs_attachment: Simplify code.
Remove code used to try to read file from the root filesystem and write into the specialized filesystem. This code was used to try to provide a way to manage staging environments by reusing the same filesystem storage but with a different directory_path depending of the environement. A simpler method is to configure use a different filesystem storage by environement. If a production database is restored in pre production env, you can declare a new filesystem storage with a different code to store the attachements by default and configure the filesystem storage from the production with information allowing to read documents stored in it but not to modify or delete existing documents. This make the implementation far more simple.
Configuration menu - View commit details
-
Copy full SHA for edca4e2 - Browse repository at this point
Copy the full SHA edca4e2View commit details -
[FIX] fs_attachment: No new registry creation
To create a new cursor, just ask to the current registry.... Loading a registry is very time consuming and could lead to deadlocks...
Configuration menu - View commit details
-
Copy full SHA for 6b297ac - Browse repository at this point
Copy the full SHA 6b297acView commit details -
[IMP] fs_attachment: store attachments linked to different model/fiel…
…ds to different FS storages
Configuration menu - View commit details
-
Copy full SHA for e8de0cc - Browse repository at this point
Copy the full SHA e8de0ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5f0a17 - Browse repository at this point
Copy the full SHA d5f0a17View commit details -
Configuration menu - View commit details
-
Copy full SHA for be93eaa - Browse repository at this point
Copy the full SHA be93eaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a527cc6 - Browse repository at this point
Copy the full SHA a527cc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for aaed4ac - Browse repository at this point
Copy the full SHA aaed4acView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5c06d0 - Browse repository at this point
Copy the full SHA e5c06d0View commit details -
[FIX] fs_attachment: Fix streaming
Fix image streaming Fix image streaming with resize Fix content size whithout x-send-file
Configuration menu - View commit details
-
Copy full SHA for c7533d7 - Browse repository at this point
Copy the full SHA c7533d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b035b43 - Browse repository at this point
Copy the full SHA b035b43View commit details -
[IMP] fs_attachment: Remose useless code
This code was initially used to magically know if we need to obfusc or not the filename into the database. Since this option is now explicit, we can safely remove-it. Moreover, without this code it's now possible to migrate old storage_file contents to the new fs_* addons
Configuration menu - View commit details
-
Copy full SHA for 12b42af - Browse repository at this point
Copy the full SHA 12b42afView commit details -
Configuration menu - View commit details
-
Copy full SHA for b49246e - Browse repository at this point
Copy the full SHA b49246eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6b39cc - Browse repository at this point
Copy the full SHA b6b39ccView commit details -
[IMP] fs_attachment: Add history
Add history for commit included from OCA#285 and the author to the contributors list
Configuration menu - View commit details
-
Copy full SHA for 58399a3 - Browse repository at this point
Copy the full SHA 58399a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 465c5ca - Browse repository at this point
Copy the full SHA 465c5caView commit details -
[FIX] fs_storage, fs_attachement: Missing sudo for technical models
Before this change, users with basic access rights was no more able to create an attachment. The problem was caused by the need to access system information to determine in which file system the attachment should be created, when this sensitive information is not accessible to everyone. The change consists of reading this information in sudo to bypass this security restriction in this specific context.
Configuration menu - View commit details
-
Copy full SHA for 05df14e - Browse repository at this point
Copy the full SHA 05df14eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 158ca29 - Browse repository at this point
Copy the full SHA 158ca29View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd64099 - Browse repository at this point
Copy the full SHA bd64099View commit details -
Translated using Weblate (Spanish)
Currently translated at 100.0% (65 of 65 strings) Translation: storage-16.0/storage-16.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_attachment/es/
Configuration menu - View commit details
-
Copy full SHA for d3b1366 - Browse repository at this point
Copy the full SHA d3b1366View commit details -
[FIX] fs_attachment: Avoid error on url compute
Avoid error when the directory_path is not set on the storage when computing the attachement
Configuration menu - View commit details
-
Copy full SHA for 70f734f - Browse repository at this point
Copy the full SHA 70f734fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79a4e05 - Browse repository at this point
Copy the full SHA 79a4e05View commit details -
Configuration menu - View commit details
-
Copy full SHA for c490407 - Browse repository at this point
Copy the full SHA c490407View commit details -
[FIX] fs_attachment: Avoid local variable redefine
When manipulating the file system api through a local variable named *fs*, we observed some strange behavior when it was wrongly redefined in an enclosing scope as in the following example: *with fs.open(...) as fs*. This commit fixes this issue by renaming the local variable and therefore avoiding the name clash.
Configuration menu - View commit details
-
Copy full SHA for 0a69156 - Browse repository at this point
Copy the full SHA 0a69156View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f3fcf4 - Browse repository at this point
Copy the full SHA 4f3fcf4View commit details -
Translated using Weblate (Italian)
Currently translated at 36.9% (24 of 65 strings) Translation: storage-16.0/storage-16.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_attachment/it/
Configuration menu - View commit details
-
Copy full SHA for b5325e3 - Browse repository at this point
Copy the full SHA b5325e3View commit details -
[IMP] fs_attachment: Improve performance
Before this change, when the fs_url was computed the computed value was always reassigned to the fs_url attribute even if the value was the same. In a lot of cases the value was the same and the reassignment was not necessary. Unfortunately this reassignment has as side effect to mark the record as dirty and generate a SQL update statement at the end of the transaction.
Configuration menu - View commit details
-
Copy full SHA for c43e470 - Browse repository at this point
Copy the full SHA c43e470View commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (65 of 65 strings) Translation: storage-16.0/storage-16.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_attachment/it/
Configuration menu - View commit details
-
Copy full SHA for e6cb5e8 - Browse repository at this point
Copy the full SHA e6cb5e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f930bd - Browse repository at this point
Copy the full SHA 4f930bdView commit details -
[FIX] add a few missing sudo to fs_attachment
fs.storage is protected as it contains credentials. It must be accessed sudo when needed for regular users manipulating ir.attachments.
Configuration menu - View commit details
-
Copy full SHA for 5ee7965 - Browse repository at this point
Copy the full SHA 5ee7965View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab82adf - Browse repository at this point
Copy the full SHA ab82adfView commit details -
[FIX] fs_attachment: broken links when nonempty paths
Let "image.png" be an image. Thumbnails might be created with a path such as "38/5b/image-128.png". Before, the path was forgotten when updating the attachment, so accessing the file would crash, making the record inaccessible.
Configuration menu - View commit details
-
Copy full SHA for 15e8ed3 - Browse repository at this point
Copy the full SHA 15e8ed3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22218a8 - Browse repository at this point
Copy the full SHA 22218a8View commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (65 of 65 strings) Translation: storage-16.0/storage-16.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_attachment/it/
Configuration menu - View commit details
-
Copy full SHA for 05d7165 - Browse repository at this point
Copy the full SHA 05d7165View commit details -
[IMP] fs_attachment: more robust pre_init_hook
If say click-odoo-update fails partway, the columns are already created and the following tentative update fails because the columns exist.
Configuration menu - View commit details
-
Copy full SHA for 5e4c2d3 - Browse repository at this point
Copy the full SHA 5e4c2d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5029f0a - Browse repository at this point
Copy the full SHA 5029f0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a07579b - Browse repository at this point
Copy the full SHA a07579bView commit details -
[FIX] compute the mimetype from new datas or raw to prevent errors wh…
…en the new mimetype doesn't match the old one
Configuration menu - View commit details
-
Copy full SHA for b65d8ff - Browse repository at this point
Copy the full SHA b65d8ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for b026e45 - Browse repository at this point
Copy the full SHA b026e45View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef15e92 - Browse repository at this point
Copy the full SHA ef15e92View commit details -
Configuration menu - View commit details
-
Copy full SHA for e765d0a - Browse repository at this point
Copy the full SHA e765d0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e53bea - Browse repository at this point
Copy the full SHA 4e53beaView commit details -
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: storage-17.0/storage-17.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-17-0/storage-17-0-fs_attachment/
Configuration menu - View commit details
-
Copy full SHA for 2835410 - Browse repository at this point
Copy the full SHA 2835410View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb9ebef - Browse repository at this point
Copy the full SHA eb9ebefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d29e07 - Browse repository at this point
Copy the full SHA 1d29e07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 586d157 - Browse repository at this point
Copy the full SHA 586d157View commit details -
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: storage-17.0/storage-17.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-17-0/storage-17-0-fs_attachment/
Configuration menu - View commit details
-
Copy full SHA for e797b4a - Browse repository at this point
Copy the full SHA e797b4aView commit details -
[FIX] fs_attachment: fix constraint
The method _check_force_db_for_default_attachment_rules() encountered issues when used with a constraints() decorator due to the computed field use_as_default_for_attachments, which is not stored in the database. This fix consists in replacing the constraints() decorator with a directly invoked method.
Configuration menu - View commit details
-
Copy full SHA for f0fca40 - Browse repository at this point
Copy the full SHA f0fca40View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc72b19 - Browse repository at this point
Copy the full SHA bc72b19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 360f454 - Browse repository at this point
Copy the full SHA 360f454View commit details -
Translated using Weblate (Chinese (Simplified) (zh_CN))
Currently translated at 100.0% (64 of 64 strings) Translation: storage-17.0/storage-17.0-fs_attachment Translate-URL: https://translation.odoo-community.org/projects/storage-17-0/storage-17-0-fs_attachment/zh_CN/
Configuration menu - View commit details
-
Copy full SHA for e7877e7 - Browse repository at this point
Copy the full SHA e7877e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2752db4 - Browse repository at this point
Copy the full SHA 2752db4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 346dfe2 - Browse repository at this point
Copy the full SHA 346dfe2View commit details -
[IMP] fs_attachment: No crash on missing file
When trying to get access to files stored into an external filesystem, don't crash if the files cannot be accessed. This is necessary to avoid blocking Odoo's operation if an external system is not accessible.
Configuration menu - View commit details
-
Copy full SHA for 206d9b4 - Browse repository at this point
Copy the full SHA 206d9b4View commit details -
[FIX] fs_attachment: prevent recompute_urls from skipping records wit…
…h res_field != False
Configuration menu - View commit details
-
Copy full SHA for eba9319 - Browse repository at this point
Copy the full SHA eba9319View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2119d70 - Browse repository at this point
Copy the full SHA 2119d70View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2da214 - Browse repository at this point
Copy the full SHA d2da214View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4524f9c - Browse repository at this point
Copy the full SHA 4524f9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9013015 - Browse repository at this point
Copy the full SHA 9013015View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2b39bb - Browse repository at this point
Copy the full SHA c2b39bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for edd8bf0 - Browse repository at this point
Copy the full SHA edd8bf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0eb78b9 - Browse repository at this point
Copy the full SHA 0eb78b9View commit details