Skip to content
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

[17.0][MIG] DMS : Migration to 17.0 #323

Merged
merged 141 commits into from
Jul 26, 2024
Merged

Commits on Jun 7, 2024

  1. Version 1.0.0

    Mathias Markl authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1a2bf46 View commit details
    Browse the repository at this point in the history
  2. 9.0 > 10.0

    Mathias Markl authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    4d0ad22 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60c8ef2 View commit details
    Browse the repository at this point in the history
  4. update

    Mathias Markl authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    ac24098 View commit details
    Browse the repository at this point in the history
  5. Add Ukrainian translation to mik_dms and muk_dms_access

    Ostap Yakovenko authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1ee73eb View commit details
    Browse the repository at this point in the history
  6. Documents 2.0

    keshrath authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f50b1a9 View commit details
    Browse the repository at this point in the history
  7. publish muk_dms - 11.0

    keshrath authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    9418458 View commit details
    Browse the repository at this point in the history
  8. v12

    keshrath authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d50f942 View commit details
    Browse the repository at this point in the history
  9. [IMP] : black, isort, prettier

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    e076f78 View commit details
    Browse the repository at this point in the history
  10. [MIG] dms: from muk_dms to dms

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    82e0271 View commit details
    Browse the repository at this point in the history
  11. [MIG] Dms tag

    Gelu authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    952b20e View commit details
    Browse the repository at this point in the history
  12. [MIG] dms: File

    Antoni Romera authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    48505bb View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9fc927d View commit details
    Browse the repository at this point in the history
  14. [IMP] Minor mig fixes

    Gelu authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1fca575 View commit details
    Browse the repository at this point in the history
  15. [MIG] dms: fix tests

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d7160a0 View commit details
    Browse the repository at this point in the history
  16. [IMP] Add security groups

    Gelu authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    9a69956 View commit details
    Browse the repository at this point in the history
  17. [ADD] dms: add funcionality of muk_dms_file

    Antoni Romera authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1d4486f View commit details
    Browse the repository at this point in the history
  18. [MIG] dms: File functionality

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    be94fb5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    aa06706 View commit details
    Browse the repository at this point in the history
  20. [FIX] Various fixes

    Gelu authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    578614d View commit details
    Browse the repository at this point in the history
  21. [IMP] dms: Add mail

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    46ef536 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    101fc75 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c9496c8 View commit details
    Browse the repository at this point in the history
  24. [13.0][MIG] dms: make migrations scripts compatible with older

    versions of muk_dms than 12.0.2.0.0.
    
    Tested from 1.2.4 version.
    LoisRForgeFlow authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c4e8a65 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    52f03a7 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    62b9802 View commit details
    Browse the repository at this point in the history
  27. [FIX] dms: Fix preview widget

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1fd6fa6 View commit details
    Browse the repository at this point in the history
  28. [FIX] dms: fix wrong test

    In v13, this test is programmed in such a way that the demo user is supposed to be able to copy that subdirectory: https://github.com/OCA/dms/blob/c3f802db43362127e70d8c7b4987fb71d4c1f01c/dms/tests/test_directory.py#L40
    
    However, in OCA#7 that test was modified indicating that demo user didn't have permissions to do that: https://github.com/OCA/dms/blob/e3b6d8d24534f2a68bfb88e310cc70cefe46bb64/dms/tests/test_directory.py#L39
    
    Rolling back that change to ensure premissions remain the same in both versions of the module.
    
    Also changing the directory to test to ensure it contains no SVG files, whose detection seems to differ among environments, and which have some specific permission restrictions that can make the modified test fail or pass.
    
    @Tecnativa TT25645
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    a7fb62a View commit details
    Browse the repository at this point in the history
  29. [IMP] dms: Portal

    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    78f8239 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    9caa87e View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    37f0e42 View commit details
    Browse the repository at this point in the history
  32. [ADD] DMS integration with attachment

    [IMP] dms: Attachment integration
    luismalta authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d890a46 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    cf04457 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    7eb5565 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    e6e5ee9 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    1dd63f0 View commit details
    Browse the repository at this point in the history
  37. [FIX] dms: Fix error when web_drop_target addon used to create new fi…

    …le + remove content field in tree
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    3e2a03e View commit details
    Browse the repository at this point in the history
  38. [FIX] dms: Adapt to 13.0

    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1e6536a View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    70f577a View commit details
    Browse the repository at this point in the history
  40. [FIX] dms: Kanban view

    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    6a0b193 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    7b712c7 View commit details
    Browse the repository at this point in the history
  42. [FIX] dms: Use sudo() in attachment operacion (search dms directories…

    … and auto-create directories and files if is needed) to prevent error in attachment(s) creation
    
    Co-authored-by: Jairo Llopis <[email protected]>
    2 people authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    7880555 View commit details
    Browse the repository at this point in the history
  43. [REF+FIX] dms: Refactor code to create abstract.dms.mixin to contain …

    …fields or functions that is used in some models (in these case some fields appear in directory and field and some functions about it).
    
    Fixed problem happen when access to file or folder view if record ref is set (file or folder has been created in attachment creation in partner for example)
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d32d4ca View commit details
    Browse the repository at this point in the history
  44. [FIX] dms: Prevent error when archive records and later process try t…

    …o create again + Add test to check it
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d457b54 View commit details
    Browse the repository at this point in the history
  45. [FIX] dms: Add domain operator

    Fixes issue OCA#69
    Shide authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f4c986e View commit details
    Browse the repository at this point in the history
  46. [12.0] [FIX] dms: Check default_directory_id context key

    When creating an attachment, check `default_directory_id` too because this key comes from kanban js view and it's like `active_id` when creating files from drag and drop (drop target).
    
    This change will allow to view the new file on the associated record if the folder has `res_model` and `res_id` (the parent folder is an attachment storage)
    
    Fixes OCA#72
    Shide authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c549a6b View commit details
    Browse the repository at this point in the history
  47. [FIX] dms: Prevent parent_id error in directories in some UI cases [F…

    …IX] dms: Change allowed_model_ids field in directory to related [FIX] dms: Change res_model + res_id fields in files to related
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    491e716 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    74eafd7 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    17386d0 View commit details
    Browse the repository at this point in the history
  50. [MIG] dms: Migration to 14.0

    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    7b363e4 View commit details
    Browse the repository at this point in the history
  51. [FIX] dms: Remove action column in portal (only used in files) and co…

    …nvert file name to link (download)
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    85823b1 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    71a77f2 View commit details
    Browse the repository at this point in the history
  53. [FIX] dms: Improve tests to prevent error if installed other addons a…

    …fter dms install and new addons auto-create partners
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    77f0ee1 View commit details
    Browse the repository at this point in the history
  54. [FIX] dms: Apply _apply_access_groups correctly (specially according …

    …to files) to get only records to get only allowed records according to directories groups.
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    99c711c View commit details
    Browse the repository at this point in the history
  55. [FIX] improve some queries

    ... so to speak.
    
    @Tecnativa TT29847
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f8c1639 View commit details
    Browse the repository at this point in the history
  56. [FIX] dms: cascade removal of related files/directories

    When some dms.directory or dms.file was related to a real DB record (a.k.a. attachment storage), if the record got deleted, the DMS mirror was still alive.
    
    If the dms.storage had inherit_access_from_parent_record=True, the situation got worse because the dms.directory became visible to everyone.
    
    @Tecnativa TT30223
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d21bb20 View commit details
    Browse the repository at this point in the history
  57. [FIX] dms: do not fail for missing models on upgrade

    Module upgrade is done in a constrained environment where the `dms` module is only aware of models declared in its dependency tree.
    
    If some upgrade operation tries to write to a file or directory that is attached to a model-based storage, the upgrade would fail with a `KeyError` when trying to get the model.
    
    This fix allows normal and predictable upgrades in such cases.
    
    @Tecnativa TT29847
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d169e39 View commit details
    Browse the repository at this point in the history
  58. [FIX] dms: image thumbnails performance

    - Portal was too slow to load because every thumbnail came base64-encoded. Instead, now it loads resources externally, making the initial request much faster, and benefiting from caching.
    - Fields `custom_thumbnail_medium` and `custom_thumbnail_small` are now stored, because non-stored thumbnails become performance bottlenecks easily.
    - Added field `icon_url` that allows using always the exact same image path for the exact same mime type. This saves a lot of requests and bandwidth.
    - Fields `thumbnail`, `thumbnail_medium` and `thumbnail_small` are now only used in forms, and do not perform resize operations.
    - Remove unused `size` parameter in thumbnail internal getters.
    - All thumbnail fields were getting resized to sizes that were different from the sizes that, later, were actually used in UI, thus making the UI always re-resize them. Removed that nonsense. Thumbnails now use the same size that the UI will require, and then UI needs to ask for no resizes.
    - Typo fixed in unknown file default thumbnail.
    - Do your customers really know what a mime type is? I bet not. Remove "type" column from portal. Thumbnails provide all the required information.
    
    @Tecnativa TT29847
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    bad48f3 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    d8a94b3 View commit details
    Browse the repository at this point in the history
  60. [REF] dms: modify permissions computation

    - Remove `perm_read` field from `dms.access.group`. It is redundant to the mere existence of the group. Otherwise, users could be able to create, write or unlink records that they cannot read. To avoid confusion, it is removed.
    - Add portal group access to mails directory, to make one test pass. This was a false positive before.
    - Forbid `dms.access.group` recursiveness.
    - Compute inclusive permissions in `dms.access.group`, which combine current group with parent group permissions.
    - Rely on domain search of `permission_{create,read,unlink,write}` in `dms.directory` and `dms.file` when checking those accesses to records. These search methods are improved to reflect permission reality and add it to the domain.
    - Added a hack to workaround situations where the current context user is superuser, but it's actually checking for other user permissions.
    - These checks are added as normal `ir.rule` records.
    - To create something in a directory, you need create access in the parent directory.
    - For other operations, and only in subdirs, the own dir access is checked.
    - Batch operations when checking inherited permissions.
    - Remove many custom methods to check access, now that we use ORM's.
    - Fix custom cascade dir unlink.
    - Use `consteq()` when checking access tokens, for security.
    - Remove duplicated security computations from `dms.directory` and `dms.file`. Use proper inheritance.
    - Use `ir.rule` for checking locked files.
    - Add or fix tests for new permissions model.
    - Define groups to root folder "Media" (according to the previous expected operation).
    - Add the Admin + Demo user group to "Mails" folder (according to the previous expected operation).
    - Add sudo() in the creation of the directory to "force" that it can be created because the correct parameter of permission_read can only be correctly defined when the record exists and the complete_group_ids records have been created (in 13.0 it is not necessary).
    - Add default group (Admin + Demo user) when creating directive in tests.
    - Corrections tests of record_ref
    - Fix prevent error related to mail_message parent not exists in some cases (directory)
    
    @Tecnativa TT29847
    
    Co-authored-by: Víctor Martínez <[email protected]>
    2 people authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    de33159 View commit details
    Browse the repository at this point in the history
  61. [FIX] dms: respect computed security rules in all contexts

    The fix is similar to [v12 creation workaround][1], with some differences:
    
    1. It is applied to both `dms.directory` and `dms.file`, as both need to use this.
    2. In v13 Odoo uses now `_filter_access_rules_python()` by default, which is incompatible with DMS' security hack, so we make use of `_filter_access_rules()` always. Some comments explain the HACK.
    3. `flush()` before doing the creation access check, so all data is in DB before we issue the `SELECT` needed to check permissions properly.
    
    [1]: https://github.com/OCA/dms/blob/db9cb933ba4f29cc1a610190c32e2ff4bb16b1ce/dms/models/directory.py#L654-L661
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    b46ccc5 View commit details
    Browse the repository at this point in the history
  62. [FIX] dms: Prevent error (apply sudo()) when recursive directories re…

    …ad from files creation in _compute_path() if some directory not allowed from user
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    afcebdf View commit details
    Browse the repository at this point in the history
  63. [FIX] dms: Fix tests for environments that add other groups to base u…

    …sers
    
    Instead of relying on base users, create the ones we need for the test.
    joao-p-marques authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    4aecc86 View commit details
    Browse the repository at this point in the history
  64. [REF] dms: Adapt to 14.0

    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    758398e View commit details
    Browse the repository at this point in the history
  65. [IMP] dms: automatic image thumbnails

    - If a dms.file contains an image, use it as thumbnail automatically, and hide controls for customizing that record's thumbnail.
    - Remove `.png` icons, unused.
    - Clarify distinction between icon and thumbnail.
    - Inherit from `image.mixin` for thumbnails.
    - Save custom thumbnails as attachments instead of db binary fields.
    
    @Tecnativa TT31004
    Jairo Llopis authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    8f94468 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    560da8c View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    6183ce6 View commit details
    Browse the repository at this point in the history
  68. [FIX] dms: Drag & Drop

    Tardo authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    267eed4 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    639a066 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    7d27cea View commit details
    Browse the repository at this point in the history
  71. [FIX] dms: Show the total of files (of all subdirectories) in the for…

    …m view of the directories.
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f5d6321 View commit details
    Browse the repository at this point in the history
  72. [FIX] dms: Define the file extension correctly (even if there is no e…

    …xtension in the file name).
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    2b3b757 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    f93d516 View commit details
    Browse the repository at this point in the history
  74. [FIX] dms: Change size field type from integer to float to prevent 21…

    …47483647 limit from postgresql.
    
    TT33935
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c047f98 View commit details
    Browse the repository at this point in the history
  75. [FIX] dms: Replace the content field with size in the form view of th…

    …e directory (file_ids field) because it is totally wrong to try to show that field.
    
    TT34353
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    2fc5682 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    3d22e1a View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    5284441 View commit details
    Browse the repository at this point in the history
  78. [MIG] dms: Finish migration

    etobella authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    ffd74f9 View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    4565e67 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    e147a06 View commit details
    Browse the repository at this point in the history
  81. Translated using Weblate (German)

    Currently translated at 98.2% (333 of 339 strings)
    
    Translation: dms-15.0/dms-15.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms/de/
    marylla authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    a834155 View commit details
    Browse the repository at this point in the history
  82. [IMP+FIX] dms: Searchpanel changes:

    - Set limit=0 to prevent js default limit https://github.com/odoo/odoo/blob/15.0/addons/web/static/src/search/search_arch_parser.js#L10
    - Removes the context of fields (not used in .js calls).
    - Display the short name of the category (no hierarchy) in Directory menu.
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    33ccd27 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    16648b3 View commit details
    Browse the repository at this point in the history
  84. [IMP] dms: Refactor tests.

    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    4dbd817 View commit details
    Browse the repository at this point in the history
  85. [IMP] dms: Changes in file tree view: - Set multi_edit - Add tag_ids …

    …field - Remove path_names field - Remove FieldPathNames (related to path_names)
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f9e368b View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    7ed7294 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    88df5b4 View commit details
    Browse the repository at this point in the history
  88. [IMP] dms: Show in directory kaban view only root directories (Change…

    … All text to Root) + Change to searchpanel directory_id (in files) or parent_id (in directories) to filter equal and not child_of
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c5538f5 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    3a42815 View commit details
    Browse the repository at this point in the history
  90. [FIX] dms: Searchpanel from directories

    We need to overwrite function from directories because odoo only return
    records with childs (very weird for user perspective).
    All records are returned now.
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c630378 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    79b142f View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    9b8cfa3 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    a81b635 View commit details
    Browse the repository at this point in the history
  94. [FIX] dms: Remove parent_id defined if you do not have access to it (…

    …search panel directory).
    
    TT41585
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    64c074e View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    b3c6220 View commit details
    Browse the repository at this point in the history
  96. [FIX] dms: Get the "parent" directories (those of the top level to wh…

    …ich you have access) in the portal view.
    
    TT41585
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    ec4812e View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    8d22cc0 View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    8fb6d91 View commit details
    Browse the repository at this point in the history
  99. [FIX] dms: dms.file thumbnail generation checks for supported mimetypes

    The method _compute_image_1920 of dms_file checks if the file is of
    mimetype image and tries to use it as a thumbnail.
    However, there are several types of image files that Odoo/PIL
    cannot work with, leading to the following error:
    
    ```
    Traceback (most recent call last):
      File "/opt/odoo/custom/src/odoo/odoo/tools/image.py", line 404, in base64_to_image
        return Image.open(io.BytesIO(base64.b64decode(base64_source)))
      File "/usr/local/lib/python3.6/site-packages/PIL/Image.py", line 2687, in open
        % (filename if filename else fp))
    OSError: cannot identify image file <_io.BytesIO object at 0x7f0a6ecb1780>
    ```
    
    and also further down
    
    ```
    odoo.exceptions.UserError: ('This file could not be decoded as an image file. Please try with a different file.', '')
    ```
    
    Examples of such files are CAD files (mimetype: image/vnd.dwg)
    For a list of all mimetypes starting with "image/" see:
    https://www.iana.org/assignments/media-types/media-types.xhtml#image
    aleuffre authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    85b9891 View commit details
    Browse the repository at this point in the history
  100. [IMP] dms: more restrictive access rights for access groups

    Change in the permissions for DMS Access Groups:
    
    - Not every user can create new access groups, but only dms_users.
    - DMS managers (not admin users) can manage every access group
    - Add tests
    
    After this change:
    
    - the base user has read only access
    - the group_dms_user can create, and can write and unlink their own groups
    - the group_dms_manager can do everything on every group.
    aleuffre authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1362d3c View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    581f1bc View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    908d699 View commit details
    Browse the repository at this point in the history
  103. Translated using Weblate (Spanish)

    Currently translated at 94.3% (319 of 338 strings)
    
    Translation: dms-15.0/dms-15.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms/es/
    Ivorra78 authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    4858a93 View commit details
    Browse the repository at this point in the history
  104. [MIG] dms: Migration from 15.0 to 16.0

    KB authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    a6d710a View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    b799045 View commit details
    Browse the repository at this point in the history
  106. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 70.0% (238 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/pt_BR/
    adrianojprado authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    6e6918f View commit details
    Browse the repository at this point in the history
  107. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 75.5% (257 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/pt_BR/
    adrianojprado authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    81ae136 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    2629d62 View commit details
    Browse the repository at this point in the history
  109. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 95.8% (326 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/pt_BR/
    adrianojprado authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    a6525c6 View commit details
    Browse the repository at this point in the history
  110. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 96.1% (327 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/pt_BR/
    adrianojprado authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    84a89bf View commit details
    Browse the repository at this point in the history
  111. Translated using Weblate (Italian)

    Currently translated at 16.7% (57 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/it/
    mymage authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    9e4e370 View commit details
    Browse the repository at this point in the history
  112. Translated using Weblate (Spanish)

    Currently translated at 100.0% (340 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/es/
    Ivorra78 authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    51153c8 View commit details
    Browse the repository at this point in the history
  113. [FIX] dms: remove padding only for directory kanban records

    16.0 migration added css to remove padding from dms directory kanban records.
    Inadvertently, it removed padding from *all* kanban view records in odoo.
    
    This commit fixes it by removing the problematic css.
    Instead, padding is removed only from directory kanban view records,
    in a manner similar to what file_kanban.scss does for file kanban view.
    
    Fixes OCA#271
    lijoantony authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    adda607 View commit details
    Browse the repository at this point in the history
  114. Translated using Weblate (Italian)

    Currently translated at 100.0% (340 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/it/
    mymage authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    81f673b View commit details
    Browse the repository at this point in the history
  115. Translated using Weblate (Italian)

    Currently translated at 100.0% (340 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/it/
    mymage authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    3c8b316 View commit details
    Browse the repository at this point in the history
  116. [IMP] dms: Show all directories in searchpanel from files

    TT46388
    
    [FIX] dms: Set the correct parent_id of directories in searchpanel
    
    If the parent directory is not in all the records we should not set
    parent_id because the user does not have access to parent.
    
    TT46388
    
    [FIX] dms: Avoid error when filtering in files
    
    If we filter on files (for example by name) we should not apply kwargs search_domain
    because we would be incorrectly filtering the directories by name, and we should
    always list them all.
    
    TT46903
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    935728b View commit details
    Browse the repository at this point in the history
  117. [FIX] dms: Correctly filter records when selecting a searchpanel item…

    … (similar to v15)
    
    In the migration to 16.0 this behavior was removed by mistake and was only done in directories
    OCA@05f7c67#diff-1bb531d306f9014026b38b47879cd2cc7bcb1deaebb7466327f4483a0a459fc3R25
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    26f8368 View commit details
    Browse the repository at this point in the history
  118. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 96.4% (328 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/pt_BR/
    adrianojprado authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    78db7df View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    674e630 View commit details
    Browse the repository at this point in the history
  120. Translated using Weblate (Spanish)

    Currently translated at 100.0% (341 of 341 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/es/
    Ivorra78 authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    2993ab2 View commit details
    Browse the repository at this point in the history
  121. Translated using Weblate (Italian)

    Currently translated at 100.0% (341 of 341 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/it/
    mymage authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    00e0a33 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    81e9e02 View commit details
    Browse the repository at this point in the history
  123. Configuration menu
    Copy the full SHA
    9f72e91 View commit details
    Browse the repository at this point in the history
  124. [FIX] dms: Set the correct directory_id value according to the domain…

    … to Upload button
    
    Example use case:
    
    - Go to Documents > Files menu.
    - Select a directory in search_panel (or from the Files smart-button of a directory).
    - Click on the "Upload" button
    - The file has been successfully added to the directory
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    18fd683 View commit details
    Browse the repository at this point in the history
  125. [FIX] dms: Fix smartbuttons from files and directories

    Use case when clicking on smartbutton Files in a directory:
    - Only files in that directory or subdirectories are shown.
    - Only directory and child subdirectories are displayed in search panel.
    - Directory is auto-selected in search panel.
    
    Use case when clicking on smartbutton Subdirectories in a directory:
    - Only directories in that directory or subdirectories are displayed.
    - Directory is auto-selected in search panel.
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    c6a1a6b View commit details
    Browse the repository at this point in the history
  126. [IMP] dms: Improve tests

    Changes done:
    - Change setup() to setUpClass()
    - Add BaseCommon
    - Remove multi_users decorator (not used)
    - Remove _setup_test_data and _load from common (not used)
    - Change DirectoryMailTestCase (extends from StorageDatabaseBaseCase)
    - Add @mute_logger to skip unnecessary unlink logs
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    fd6b8df View commit details
    Browse the repository at this point in the history
  127. Translated using Weblate (Italian)

    Currently translated at 100.0% (340 of 340 strings)
    
    Translation: dms-16.0/dms-16.0-dms
    Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms/it/
    mymage authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    90df3d1 View commit details
    Browse the repository at this point in the history
  128. Configuration menu
    Copy the full SHA
    c274a54 View commit details
    Browse the repository at this point in the history
  129. Configuration menu
    Copy the full SHA
    50b3609 View commit details
    Browse the repository at this point in the history
  130. [FIX] dms: Improve the unlink method in base to avoid errors

    In the uninstall process of dms, checks were made that prevented the
    removal of fields and models being deleted, also causing the dms_file
    and dms_directory tables to continue to exist.
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    b676766 View commit details
    Browse the repository at this point in the history
  131. Configuration menu
    Copy the full SHA
    f5bcf22 View commit details
    Browse the repository at this point in the history
  132. [FIX] dms: Change display_name from directory kanban buttons (Directo…

    …ries and Files)
    
    To avoid inconsistency with the text displayed when clicking on the button,
    change display_name of the action to directory name.
    
    TT48180
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    5098a60 View commit details
    Browse the repository at this point in the history
  133. [IMP] dms: Add default_order to file and directory tree to prevent co…

    …nfusion
    
    When using searchpanel and there is no default_order, records obtained have no defined
    order (search_read without order).
    
    TT48180
    victoralmau authored and tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    00d8c74 View commit details
    Browse the repository at this point in the history
  134. Configuration menu
    Copy the full SHA
    c8eab55 View commit details
    Browse the repository at this point in the history
  135. Configuration menu
    Copy the full SHA
    14b7abe View commit details
    Browse the repository at this point in the history
  136. Configuration menu
    Copy the full SHA
    ba4eb31 View commit details
    Browse the repository at this point in the history
  137. [IMP] dms: Remove string=Size from the human_size field to avoid the …

    …warning of 2 fields with the same string.
    tva-subteno-it committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    79f1bbf View commit details
    Browse the repository at this point in the history
  138. Configuration menu
    Copy the full SHA
    c788944 View commit details
    Browse the repository at this point in the history
  139. Configuration menu
    Copy the full SHA
    fd98341 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. [FIX] dms: Allow share (directories and files) without 'Contact creat…

    …ion' permission
    
    Extra changes: Replace Share buttons with actions
    
    Steps to reproduce:
     - Go to Settings > Users & Companies > Users and create a user only with Documents > Manager permission.
    (User must not have the Extra Rights > Contact Creation permission).
     - Go to Documents and go into a directory form view and click on "Share" button.
     - An access error is displayed
    victoralmau authored and tva-subteno-it committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    28b104c View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Configuration menu
    Copy the full SHA
    0ffaf96 View commit details
    Browse the repository at this point in the history