Files
odoo_source/addons/web_unsplash/views/res_config_settings_view.xml
T
Romain Derie c3e7fa0e04 [IMP] web_unsplash: allow to configure app id in settings
Since it was introduced with [1], only the key could be added in the
settings, but not the app id.

Still, both are needed to actually use unsplash, otherwise it won't
work and the media dialog will keep showing the crendentials part, where
one can also add its credentials.

Basically, without the app id field, the access key field was useless in
the settings.

[1]: https://github.com/odoo/enterprise/commit/88746157ca16af4033576361dddae0b694aca70d

task-3004144

closes odoo/odoo#102000

X-original-commit: fa45712eecd2a0fbf6236f611ddffd0b5e81dc31
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-03 20:20:07 +02:00

28 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.web.unsplash</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="web_unsplash_warning" position="replace">
<div attrs="{'invisible': [('module_web_unsplash', '=', False)]}">
<div class="content-group mt16">
<label for="unsplash_access_key" class="o_light_label"/>
<field name="unsplash_access_key"/>
</div>
<div class="content-group">
<label for="unsplash_app_id" class="o_light_label"/>
<field name="unsplash_app_id"/>
</div>
<div>
<a href="https://www.odoo.com/documentation/master/applications/websites/website/optimize/unsplash.html#generate-an-unsplash-access-key" class="oe_link" target="_blank">
<i class="fa fa-arrow-right"/> Generate an Access Key
</a>
</div>
</div>
</div>
</field>
</record>
</odoo>