summaryrefslogtreecommitdiff
path: root/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-11-19 14:36:31 +0000
committerJeremy Kersten <jke@odoo.com>2018-11-23 14:51:07 +0000
commit8b1a05d9e09dca317ca38422d75f459a7e1784aa (patch)
treef2e8c5c079e067450f6aa979d84d60eb4eeec11c /addons/web_unsplash/static/src/xml/unsplash_image_widget.xml
parentcd2637cfdf0ec2c5dc2fa2b74b29fdffac822e87 (diff)
[FIX] web_unsplash: don't expose client_id in network
Unsplash CEO asked us to stop exposing our key client side (even if it was only in the browser network and previously allowed by their API team leader). After multiple exchange, it has been negociated that: 1. Our non saas user won't be able to apply for a production key and should prefix they Unsplash application name by 'Odoo:'. Their key will remain in test mode. Indeed, Unsplash won't be able to review every Odoo application and ensure it respects the API terms and it is a real application. 2. Our saas user will query Unsplash with a dedicated enterprise key 3. The documentation should explain it all Task-1911345
Diffstat (limited to 'addons/web_unsplash/static/src/xml/unsplash_image_widget.xml')
-rw-r--r--addons/web_unsplash/static/src/xml/unsplash_image_widget.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml b/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml
index 409c435884b..05202e073b2 100644
--- a/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml
+++ b/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml
@@ -50,7 +50,7 @@
<t t-name="web_unsplash.dialog.error.content">
<div class="row mt16 text-muted unsplash_error">
<div class="m-auto text-center">
- <t t-if="key_not_found">
+ <t t-if="status == 'key_not_found'">
<t t-call="web_unsplash.dialog.error.credentials">
<t t-set="title">
Unsplash requires an access key and an application ID