Skip to content
Snippets Groups Projects
Commit 03a217e4 authored by Martin Geubelle's avatar Martin Geubelle
Browse files

[FIX] survey: use correct widget for CopyClipboard


As both `survey_url` and `public_url` are `Char` fields, the correct widget
to use is `CopyClipboardChar` (`CopyClipboardText` is for `Text` fields).

This was causing a display issue (the style of mentioned widgets is different).

Task 1935577

closes odoo/odoo#31624

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 7836b996
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,9 @@
<group>
<group>
<field name="access_mode"/>
<field name="public_url" readonly="1"
<field name="public_url" readonly="1"
attrs="{'invisible': [('access_mode', '!=', 'public')]}"
widget="CopyClipboardText"/>
widget="CopyClipboardChar"/>
<field name="category" invisible="1"/>
</group>
</group>
......
......@@ -12,7 +12,7 @@
<field name="survey_users_login_required" invisible="1"/>
<field name="survey_id" readonly="context.get('default_survey_id')"/>
<field name="existing_mode" widget="radio" invisible="1" />
<field name="survey_url" label="Public share URL" readonly="1" widget="CopyClipboardText"
<field name="survey_url" label="Public share URL" readonly="1" widget="CopyClipboardChar"
attrs="{'invisible':[('survey_access_mode', '!=', 'public')]}"
class="mb16"/>
<field name="partner_ids"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment