Files
odoo_source/addons/web_unsplash
Adrien Schoffeniels d50589fd08 [IMP] web_unsplash: allow to specify image orientation
Purpose:
========
Knowledge allows to search images from unsplash when selecting a cover
for an article. One would like to show only images with a landscape
orientation when selecting a cover, since images with other orientations
do not fit properly.

Also made "UnsplashError" component exportable so that it can be used
in Knowledge,'s Cover Selector.

Specs:
======
Modified unsplash_service and image_selector so that one can specify
the orientation of the images to fetch from unsplash.
Added the orientation as cache key so that images in cache are not shown
when using the same query word but with another orientation (eg. in
knowledge, search an image for the body of the article then searching a
cover using the same query term).

Task-2852916

closes odoo/odoo#101671

X-original-commit: e65d5d617bd13cf0381b372205a07a4a3bef2963
Related: odoo/enterprise#32050
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-09-30 08:07:49 +02:00
..
2022-09-24 15:00:56 +02:00