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

Creating root folder for record with "/" in name is not possible #243

Closed
ivosm opened this issue May 22, 2023 · 1 comment
Closed

Creating root folder for record with "/" in name is not possible #243

ivosm opened this issue May 22, 2023 · 1 comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@ivosm
Copy link

ivosm commented May 22, 2023

Module

dms_field

Describe the bug

Creating root directory for record with "/" in name raises an error.
In model dms.add.directory.record in method _create_directory_vals is for created file name used "name": record.display_name. This gives faulty file name for correct record name. Very typical case is a bank statement.

Expected behavior
The record name should be sanitized to get correct file name for all correct record names.
The easiest solution, which covers probably most cases is just replace / with _ , but it's a very hot fix.

Additional context
Odoo 15.0

@ivosm ivosm added the bug label May 22, 2023
Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant