Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
11591 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I've solved it. 

Thanks

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 22
2929
1
thg 12 24
2397
0
thg 10 20
3322
2
thg 3 20
5210
1
thg 8 17
3795