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

User can't create a file in a subdirectory (without create permission in the parent directory) #384

Open
stmar opened this issue Dec 13, 2024 · 1 comment
Labels

Comments

@stmar
Copy link

stmar commented Dec 13, 2024

Module

Dms

Describe the bug

User can't create a file in a subdirectory (without create permission in the parent directory, but with create permission in the subdirectory)

To Reproduce

Affected versions:
tested in version 16

Steps to reproduce the behavior:

  1. Create an invoicing group with create access
  2. As admin create a root directory D1
  3. Add admin group in this directory
  4. In D1 create a new directory D2
  5. In D2, add admin group (with create, write, unlink permissions) and invoicing group with create permission
  6. Connect as user with invoicing group
  7. User can see D2 directory in file menu
  8. in file menu, click on create button
  9. On the form view, in directory field D2 is not displayed

Expected behavior
In the last point, D2 must be displayed in the directory field

Additional context
The use case is accessible in this instance : http://oca-dms-16-0-a56dd40ab485.runboat.odoo-community.org/web

@stmar stmar added the bug label Dec 13, 2024
@mnoukrati
Copy link

I confirm this issue, I recorded a video explaining it.

Odoo.-.Parent.directory.1._.Sub-directory.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants