Skip to content

Commit 3296fec

Browse files
visp-odoochdh-odoo
authored andcommitted
[FIX] website: adapt tour website_form_editor_tour
1 parent 48edd7d commit 3296fec

File tree

4 files changed

+125
-131
lines changed

4 files changed

+125
-131
lines changed

addons/website/static/src/builder/plugins/form/form_option.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
<!-- checkbox, select, radio possible values -->
307307
<BuilderSelectItem t-foreach="state.conditionValueList" t-as="record" t-key="record.value"
308308
dataAttributeActionValue="record.value"
309-
t-out="record.textContent"
309+
t-out="record.display_name"
310310
/>
311311
</BuilderSelect>
312312
<BuilderSelect t-if="state.conditionValueList and domStateDependency.isRecordField"
@@ -319,7 +319,7 @@
319319
/>
320320
</BuilderSelect>
321321
<BuilderTextInput t-if="isTextConditionValueVisible"
322-
id="'hidden_condition_additional_text'" dataAttributeAction="'visibilityCondition'"
322+
attributeAction="'visibilityCondition'" id="'hidden_condition_additional_text'" dataAttributeAction="'visibilityCondition'"
323323
/>
324324
<BuilderDateTimePicker t-if="domStateDependency.isFormDateTime and !['set', '!set'].includes(domState.elDataset.visibilityComparator)"
325325
id="'hidden_condition_additional_datetime'" dataAttributeAction="'visibilityCondition'" type="'datetime'"

addons/website/static/src/builder/plugins/form/form_option_plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ export class FormOptionPlugin extends Plugin {
942942
conditionValueList.push({
943943
value: el.value,
944944
textContent: el.value,
945+
display_name: el.labels[0].textContent
945946
});
946947
}
947948
if (!inputContainerEl.dataset.visibilityCondition) {

0 commit comments

Comments
 (0)