Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
11596 Ansichten

I want to show a many2one field in the website, to record a contact(partner), i have field called partner categories as a m2o field, and i want to register a new contact with this category, but in the website. I've not found a widget that helps to do that. 

Thanks in advance 

Avatar
Verwerfen
Beste Antwort

Hi,

Try This.

<div class="form-group form-field o_website_form_required_custom">    
<div class="col-md-12" style="margin-bottom:10px;">
<label class="col-md-offset-1 col-md-1 col-sm-4 control-label" style="padding-top: 8px;" for="search">CHAIR*</label>
<div class="col-md-5 col-sm-8">
<select id="chair" required="True" class="form-control" style="width: 432px; height: 35px;">
<t t-foreach="chair_details" t-as="chair">
<option t-att-value="chair.id" t-esc="chair.name"/></t>
</select>
</div>
<div class="col-md-5" style="padding-left:0px !important;">
<p style="font-size: 16px;padding-top: 9px;">( Select the chair that free in the preferred time )</p>
</div>
</div>
</div>

Thank you.

Avatar
Verwerfen
Autor Beste Antwort

I've solved it. 

Thanks

Avatar
Verwerfen

Hey Oscar, do you happen to remember how you managed to solve the issue?

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Jan. 22
2937
1
Dez. 24
2399
0
Okt. 20
3329
2
März 20
5213
1
Aug. 17
3800