Skip to content

[16.0][FIX]dms: The method for uploading a file did not work when the folder was empty.#396

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
BinhexTeam:16.0-fix-dms
Apr 10, 2025
Merged

[16.0][FIX]dms: The method for uploading a file did not work when the folder was empty.#396
OCA-git-bot merged 1 commit intoOCA:16.0from
BinhexTeam:16.0-fix-dms

Conversation

@adasatorres
Copy link
Copy Markdown
Contributor

Good morning, here is a possible solution for issue #390

The solution I propose is to use the default_directory_id from the context of the current controller, as the directory is currently specified within a domain. If there is no domain, a file cannot be uploaded, but if there are no files, there is no domain either.

Copy link
Copy Markdown

@AlvaroRM11 AlvaroRM11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review. LGTM! Amazing. I think this happens in v15 too.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza pedrobaeza added this to the 16.0 milestone Apr 6, 2025
Comment thread dms/__manifest__.py Outdated
Comment thread dms/static/src/js/views/dms_file_upload.esm.js
Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

Please fw-port it to 17

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-396-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 49462a9 into OCA:16.0 Apr 10, 2025
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 252ea92. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants