I am trying to use a multiselection library inside a template (<t t-name=…) rendered by qweb.render.
the library works fine in home page (<template id=…), but it won’t work in <t t-name=…
enter image description here
i am using odoo 15 community
Can any one help me with this.
Best regards
i ve called the .js and .css files of the library in web.assets_frontend.
the working code:
<templates id="template" xml:space="preserve">
<t t-name="t_lead_form">
<select multiple="multiple" name="language" class="b_multiselection">
<option value="js">JavaScript</option>
<option value="html">HTML</option>
<option value="css">CSS</option>
</select>
</t>
</templates>
Not working code:
<template id="createFormModal">
<select multiple="multiple" name="language" class="b_multiselection">
<option value="js">JavaScript</option>
<option value="html">HTML</option>
<option value="css">CSS</option>
</select>
</template>
New contributor
Sadok Abouda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.