[FIX] product_images: correctly throw an UserError

The UserError was inadvertently removed and replaced by
`google_pse_id_is_set` variable, which is a boolean.

closes odoo/odoo#75298

Signed-off-by: Valentin Chevalier <chevalierv@users.noreply.github.com>
This commit is contained in:
Valentin Chevalier
2021-08-19 08:39:06 +00:00
parent 3e7e6d8497
commit bd732d32f1
@@ -47,7 +47,7 @@ class ProductFetchImageWizard(models.TransientModel):
google_pse_id_is_set = bool(ICP.get_param('google.pse.id'))
google_custom_search_key_is_set = bool(ICP.get_param('google.custom_search.key'))
if not (google_pse_id_is_set and google_custom_search_key_is_set):
raise google_pse_id_is_set(_(
raise UserError(_(
"The API Key and Search Engine ID must be set in the General Settings."
))