Skip to content

Conversation

@sundar-prakash
Copy link

No description provided.

victoralmau and others added 30 commits April 1, 2025 13:25
…e directory (file_ids field) because it is totally wrong to try to show that field.

TT34353
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/
- 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.
…field - Remove path_names field - Remove FieldPathNames (related to path_names)
… All text to Root) + Change to searchpanel directory_id (in files) or parent_id (in directories) to filter equal and not child_of
We need to overwrite function from directories because odoo only return
records with childs (very weird for user perspective).
All records are returned now.
…ich you have access) in the portal view.

TT41585
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
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.
OCA-git-bot and others added 29 commits June 24, 2025 15:50
Signed-off-by pedrobaeza
Signed-off-by pedrobaeza
Aligns the overridden _find_record_check_access method with its updated signature in the Odoo core. This change ensures continued compatibility and proper access to DMS media files via access tokens.

Key Changes:
- Updates the method override to accept and pass the new 'field' parameter.
Signed-off-by etobella
Currently translated at 100.0% (33 of 33 strings)

Translation: dms-18.0/dms-18.0-dms_auto_classification
Translate-URL: https://translation.odoo-community.org/projects/dms-18-0/dms-18-0-dms_auto_classification/sv/
Currently translated at 100.0% (2 of 2 strings)

Translation: dms-18.0/dms-18.0-dms_user_role
Translate-URL: https://translation.odoo-community.org/projects/dms-18-0/dms-18-0-dms_user_role/sv/
Currently translated at 100.0% (8 of 8 strings)

Translation: dms-18.0/dms-18.0-web_editor_media_dialog_dms
Translate-URL: https://translation.odoo-community.org/projects/dms-18-0/dms-18-0-web_editor_media_dialog_dms/sv/
…race condition with hr_holidays accrual plan
Signed-off-by pedrobaeza
Signed-off-by pedrobaeza
@pedrobaeza
Copy link
Member

Please only one module migration per PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.