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

[16.0][MIG] dms_field: Migration to 16.0 #339

Merged
merged 53 commits into from
Jun 19, 2024

Commits on Jun 19, 2024

  1. [12.0][ADD] dms_field: New view

    Jaime Arroyo authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    405a3a0 View commit details
    Browse the repository at this point in the history
  2. [IMP] dms_field: create dms records

    etobella authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    88361e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0d891a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    512dedf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    14108f5 View commit details
    Browse the repository at this point in the history
  6. [FIX] improve some queries

    ... so to speak.
    
    @Tecnativa TT29847
    Jairo Llopis authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    a9d4b02 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5cf9edc View commit details
    Browse the repository at this point in the history
  8. [MIG] dms_field: Migration to 13.0

    Co-authored-by: luismalta <luis.malta@kmee.com.br>
    2 people authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    a79414f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    eaceead View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a4de2bc View commit details
    Browse the repository at this point in the history
  11. [RFC] dms_field: change license from agpl to lgpl

    Approved Enric Tobella
    OCA#169
    marcelsavegnago authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    6c6665d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5245d71 View commit details
    Browse the repository at this point in the history
  13. [UPD] Update dms_field.pot

    oca-ci authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f190693 View commit details
    Browse the repository at this point in the history
  14. [UPD] README.rst

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    b595afe View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    80dce1a View commit details
    Browse the repository at this point in the history
  16. Translated using Weblate (Spanish)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/es/
    Ivorra78 authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    bb0634f View commit details
    Browse the repository at this point in the history
  17. [UPD] README.rst

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    7b683b5 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9e66feb View commit details
    Browse the repository at this point in the history
  19. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/
    weblate authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    23f0945 View commit details
    Browse the repository at this point in the history
  20. Translated using Weblate (Italian)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/it/
    mymage authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    8bd4984 View commit details
    Browse the repository at this point in the history
  21. Translated using Weblate (Italian)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/it/
    mymage authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    801f9c4 View commit details
    Browse the repository at this point in the history
  22. Translated using Weblate (Italian)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/it/
    mymage authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    5b7b970 View commit details
    Browse the repository at this point in the history
  23. Translated using Weblate (Italian)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/it/
    francesco-ooops authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    1ad6d26 View commit details
    Browse the repository at this point in the history
  24. [FIX] dms_field: Use new field

    etobella authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    a34cd20 View commit details
    Browse the repository at this point in the history
  25. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    69d223a View commit details
    Browse the repository at this point in the history
  26. [UPD] Update dms_field.pot

    oca-ci authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    49f9d8b View commit details
    Browse the repository at this point in the history
  27. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/
    weblate authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    53275b9 View commit details
    Browse the repository at this point in the history
  28. Translated using Weblate (Italian)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/it/
    mymage authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    dda4bf3 View commit details
    Browse the repository at this point in the history
  29. [FIX] dms_field: Opening a directory using the right click open action

    The root directory can't be opened using the contextual action menu (`open`)
    
    Impacted versions:
    
        12.0 and above
    
    Steps to reproduce:
    
        Go to "DMS directories" in the partner form view
        Create a new root directory
        Right-click and choose `Open`
    
    Current behavior:
    
        Odoo raises an error `TypeError: record is null`
    
    Expected behavior:
    
        Open the directory like if we click on the `Open` button in the right section (Document preview)
    Zodk2 authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f7e7707 View commit details
    Browse the repository at this point in the history
  30. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    c1fbf1d View commit details
    Browse the repository at this point in the history
  31. [UPD] Update dms_field.pot

    oca-ci authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    8399ece View commit details
    Browse the repository at this point in the history
  32. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/
    weblate authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    9566f1c View commit details
    Browse the repository at this point in the history
  33. [IMP] dms_field: Misc changes

    - Create dms.field.template to set model, groups and directory structure.
    - Remove the wizard to create a directory from a record.
    - Directory structure is created when record is created (partner for example).
    - Change the information on the right side.
    - Have directory/file tree open when loading.
    
    TT46804
    
    TT46804
    victoralmau authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0ca89c9 View commit details
    Browse the repository at this point in the history
  34. [UPD] Update dms_field.pot

    oca-ci authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    7ef8d06 View commit details
    Browse the repository at this point in the history
  35. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    1c32835 View commit details
    Browse the repository at this point in the history
  36. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/
    weblate authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f651f90 View commit details
    Browse the repository at this point in the history
  37. [IMP] dms_field: Disable multiple selection not currently supported (…

    …cut several files and paste them into another directory)
    
    TT47482
    victoralmau authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    d5acc25 View commit details
    Browse the repository at this point in the history
  38. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    2842547 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    dc82616 View commit details
    Browse the repository at this point in the history
  40. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0ab1343 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    fdfa409 View commit details
    Browse the repository at this point in the history
  42. [UPD] Update dms_field.pot

    oca-ci authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    7273b68 View commit details
    Browse the repository at this point in the history
  43. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/
    weblate authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    692fd24 View commit details
    Browse the repository at this point in the history
  44. [IMP] dms_field: Open all directories at first charge but not set ope…

    …n as default state
    
    Before this change, when lauching the reload, the child directories
    of the reloaded one are opened too.
    
    By doing at this step and not setting the default state, the reloads are
    done just for the implied nodes.
    
    Furthermore, the code is improved to just reload the directories that
    have being changed.
    CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0a89321 View commit details
    Browse the repository at this point in the history
  45. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    940ccf6 View commit details
    Browse the repository at this point in the history
  46. Translated using Weblate (Spanish)

    Currently translated at 100.0% (75 of 75 strings)
    
    Translation: dms-15.0/dms-15.0-dms_field
    Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/es/
    Ivorra78 authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    87a8731 View commit details
    Browse the repository at this point in the history
  47. [FIX] dms_field: Keep dms active when changing view

    With hr_dms_field
    The steps to reproduce the problem are:
    
    1. Open Employee
    2. Go to Documents Page
    3. Drop a file on a directory
    4. Go to another Employee
    5. Try to drop a file
    
    The file can not be dropped.
    CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    86ab69f View commit details
    Browse the repository at this point in the history
  48. [BOT] post-merge updates

    OCA-git-bot authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    fc210c1 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    f867d97 View commit details
    Browse the repository at this point in the history
  50. [MIG] dms_field: Migration to 16.0

    In the migration, the view type is changed from dms_tree to
    dms_list. That's because in this point https://github.com/odoo/odoo/blob/16.0/addons/web/static/src/views/fields/field.js#L282
    the 'tree' string is replaced by 'list' what is causing problems
    trying to set the view type as it was before.
    CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    86cce16 View commit details
    Browse the repository at this point in the history
  51. [IMP] dms_field: Add Parent directory option to templates

    A parent directory can be set in templates, if set, the directory that is created
    linked to a record will be a "child" of that directory.
    
    TT48650
    victoralmau authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    36a2b0b View commit details
    Browse the repository at this point in the history
  52. [IMP] dms_field: Add model_ref to access groups to avoid possible err…

    …ors when creating directories from a template.
    
    Example of use case:
    - Create a partner.
    - Create a template linked to partners.
    - Create a directory through the template.
    - An access group linked to the partner is created.
    - Delete the partner directory.
    - Creates a new directory through the template.
    - No error will occur and the previous access group will be re-used.
    victoralmau authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    29971c4 View commit details
    Browse the repository at this point in the history
  53. [FIX] dms_field: Avoid auto-generate multiple access groups + Refacto…

    …ring
    
    Now the process will be as follows:
    - The auto-generated access group will be created.
    - The user will be defined in explicit_user_ids of the group
    created in the previous step.
    
    In the directory created (from the corresponding record) the auto-generated
    group (for the user to have access) + the access groups that the template
    had will be used.
    victoralmau authored and CarlosRoca13 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0393143 View commit details
    Browse the repository at this point in the history