OCA / knowledge

Odoo Document & Knowledge Management
http://www.odoo-community.org/project/22
GNU Affero General Public License v3.0
153 stars 328 forks source link

[14.0][FIX]attachment_preview: get preview for files in db only #485

Closed PicchiSeba closed 2 months ago

PicchiSeba commented 4 months ago

In a few cases, when a user uploads files such as PDFs, when the client tries to get the preview, the file may not be saved yet.

This results in the following error image001

With this check we fetch only the previews of those files we know the id of.

PicchiSeba commented 2 months ago

Hi @kaynnan , thank you for your review.

I just rebased :)

OCA-git-bot commented 2 months ago

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). 🤖

hbrunn commented 2 months ago

/ocabot merge patch

OCA-git-bot commented 2 months ago

What a great day to merge this nice PR. Let's do it! Prepared branch 14.0-ocabot-merge-pr-485-by-hbrunn-bump-patch, awaiting test results.

OCA-git-bot commented 2 months ago

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