-
-
Notifications
You must be signed in to change notification settings - Fork 176
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][IMP] dms: Show all directories in searchpanel from files #280
Conversation
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another difference I saw it's that when you're in a folder, you get all the files from the subfolders, which wasn't the original behavior, where just got the files in that folder.
Not which one I prefer though 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from David's comment.
… (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
Oops, thanks, that's solved (I thought this was the same as in v15). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! 👍
/ocabot merge patch Please check if all other changes of 15.0 are reflected in this version. |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 9278094. Thanks a lot for contributing to OCA. ❤️ |
FWP from 15.0: #274 + #276 + #278
Show all directories in searchpanel from files
In v13 the
search_panel_select_range()
method (https://github.com/odoo/odoo/blob/13.0/addons/web/models/models.py#L240) returned all directories, now only records that have any files in any directory are returned (this causes that directories without files are not shown).v13:

Before:

After:

Please @pedrobaeza and @chienandalu can you review it?
@Tecnativa TT46388