Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
11622 มุมมอง

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 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด


See this also ...

https://www.odoo.com/forum/help-1/question/selection-field-on-odoo-frontend-118834  

 

iWesabe 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I've solved it. 

Thanks

อวตาร
ละทิ้ง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 22
2945
1
ธ.ค. 24
2409
0
ต.ค. 20
3346
Change Partner profile picture แก้ไขแล้ว
2
มี.ค. 20
5229
1
ส.ค. 17
3843