OCA / search-engine

GNU Affero General Public License v3.0
46 stars 61 forks source link

[16.0][FIX] search_engine_image_thumbnail: Avoid error on view load #170

Closed lmignon closed 11 months ago

lmignon commented 11 months ago

In the thumbnail size form a domain is computed to restrict the model's field for which the size is defined. The build process filters of type FSImage of relational field to image relation model. In this mechanism we check the comodel_name info to validate the related model if a comodel_name is defined on a field. In some cases (related), the comodel_name doesn't refer to an odoo model. (A bug?). We now ignore fields with a comodel_name not part of the registry

lmignon commented 11 months ago

/ocabot merge patch

OCA-git-bot commented 11 months ago

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

OCA-git-bot commented 11 months ago

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