Hello,
I've defined a selection on website form, this selection will hold 'many2many' field, so it will look like 'many2many_tags' widget.
For now, on the website form view, I can select more than one value, but when I validated the form value sent to backend, it's only get the first value for this selection.
here my code (xml):
<div id="group_permit" t-attf-class="form-group
<label class="col-md-3 col-sm-4 control-label" for="permit" >Driving License</label>
<div id="fields_permit" class="col-md-7 col-sm-8">
<select multiple="multiple" name="permit_id" class="form-control select2">
<t t-foreach="permit_ids" t-as="permit">
<option t-att-value="permit.id">
<t t-esc="permit.name"/>
</option>
</t>
</select>
</div>
</div>
On the 'firebugs', I see, there are two value for selection field was sent to server:
example:
permit_id: 1
permit_id: 2
On the backend, when I debug the value was sent:
Only detected the first value. {'permit_id': u'1'}
How to get all the value was selected?
Please help :)
thanks.