Skip to content

[19.0][MIG] dms: Migration to 19.0#475

Open
dnplkndll wants to merge 143 commits into
OCA:19.0from
ledoent:19.0-mig-dms
Open

[19.0][MIG] dms: Migration to 19.0#475
dnplkndll wants to merge 143 commits into
OCA:19.0from
ledoent:19.0-mig-dms

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 12, 2026

Port of dms from 18.0 to 19.0

@pedrobaeza
Copy link
Copy Markdown
Member

Thanks for the contribution.

Please preserve commit history following technical method explained in https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-19.0.

If the jump is between several versions, you have to modify the source branch in the main command to accommodate it to this circumstance.

@dnplkndll dnplkndll force-pushed the 19.0-mig-dms branch 5 times, most recently from 05b4630 to 43752f4 Compare May 12, 2026 15:29
victoralmau and others added 29 commits May 28, 2026 21:20
…nfusion

When using searchpanel and there is no default_order, records obtained have no defined
order (search_read without order).

TT48180
…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
[UPD] Update dms.pot

[BOT] post-merge updates

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: dms-17.0/dms-17.0-dms
Translate-URL: https://translation.odoo-community.org/projects/dms-17-0/dms-17-0-dms/
… error

Changes done:
- Improve _dms_operations() method to do nothing if the model is not one of
those used in dms.storage.
- Avoid access error with .browse() if we access a non-existing record (for
example, deleted by database).

TT50231
UserWarning: dms.file: inconsistent 'store' for computed fields, accessing migration
may recompute and update require_migration. Use distinct compute methods for stored
and non-stored fields

[BOT] post-merge updates
It was missing a placeholder.
Add the mk_file_kanban_view class to the custom kanban view so that it is
displayed correctly according to the styles set for that class (mk_file_kanban_view).

TT50055
…llowed to create

TT50055

[BOT] post-merge updates

[BOT] post-merge updates
Co-authored-by: kobros-tech

TT55505
When deleting an attachment, an attempt should be made to delete the linked file, causing an error if it is locked.
Do not show the Delete/Archive/Unarchive option on files if it is locked and you cannot unlock it.

Fixes OCA#381
… is applied correctly.

Before these changes, the domain was never applied to search by the parent, so all subfolders were being displayed instead of only the direct children of the selected one.

After making the changes, only a single level of folders is shown, without displaying all descendant folders.
The _check_access_dms_record method uses self.search(domain) to verify
write permissions. However, search() applies active_test=True by default,
which excludes archived records (active=False).

This means when a user tries to unarchive a file via toggle_active(),
the write permission check cannot find the archived record in the search
results, causing an AccessError even when the user has full write
permissions through DMS access groups.

Fix: add active_test=False context to include archived records in the
permission check search.
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.