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

Hello,

I want add radio button in page which is create as follows:

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="page_question_template">
<t t-call="website.layout">
<div id="wrap">
<div class="container">
<h4>First Question</h4>
<ul>
<li>Radio option 1</li>
<li>Radio option 2</li>
<li>Radio option 3</li>
</ul>
<br/><br/>
<h4>Second Question</h4>
<br/><br/>
<h4>Third Question</h4>
</div>

</div>
</t>
</template>

<record id="page_question" model="website.page">
<field name="name">Questions</field>
<field name="website_published">True</field>
<field name="url">/questions</field>
<field name="view_id" ref="page_question_template"/>
</record>
</odoo>

Description: I am creating page in that I want to create question and select question type radio button fot that question.

I have google but not get enough information.

any suggestion appriciated
Thanks in advance.

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

You can find similar code in the survey module. Just look at the code in the module and give it a try. 

If you have any trouble, just post your code you have tried.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 20
3456
2
thg 7 25
6034
0
thg 9 22
803
0
thg 11 19
2865
1
thg 1 19
4629