Hi
I add a many2one field customer to a website page.
I can only choose the customer. I want it to have the ability to search by entering part of the customer name.
please help me, thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
I add a many2one field customer to a website page.
I can only choose the customer. I want it to have the ability to search by entering part of the customer name.
please help me, thanks.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
<select id="cus" name="customer" class="form-control o_website_form_input" style="border-radius: 1em;max-height:35px; width:420px;float:center;margin:10px" required="1" onchange="check_selected_customer()">
<option selected="selected" value="-1">
<t t-if=" not selected_customer" t-esc="'Select a customer'"/>
</option>
<t t-foreach="customers" t-as="customer">
<option t-att-value="customer">
<t t-esc="customers[customer]"/>
</option>
</t>
</select>