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

Hey i have a view in which i am getting some values to view in portal and next to that i got some input fields based on the number of lines i got. But when i loop through it , it only returns first value . What is the right way to loop over input tag?

Here is mine

<table style="width: 100%;">
<thead>
<tr
class="active">
<th>
Name</th>
<th>
Description</th>
<th>
Weightage</th>
<th>
Employee Rate</th>
<th>
Employee Remarks</th>
<!-- <th>Final Rating</th>-->
<!-- <th>Responsible Approver</th>-->
</tr>
</thead>
<t
t-foreach="performance.performance_lines" t-as="perform">
<tr>

<td
t-if="perform.display_type=='line_section'" colspan="5"
style="background-color:#668cff; text-align: center; color:#fde428;">
<span
t-field="perform.name"/>
</td>
<td
t-else="perform.display_type!='line_section'">
<span
t-field="perform.name"/>
</td>


<td>
<span
t-if="perform.display_type!='line_section'"
t-field="perform.kpa_text"/>
</td>
<td>
<span
t-if="perform.display_type!='line_section'"
t-field="perform.weightage"/>
</td>
<td>
<input
t-if="perform.display_type!='line_section'" type="number"
class="form-control emp_self" name="emp_self"
min="1" max="10"
placeholder="Employee Rating"/>
</td>

<td>
<input
t-if="perform.display_type!='line_section'" type="text"
class="form-control remarks" name="remarks"
placeholder="Employee Remarks" widget="text"/>
</td>
</tr>
</t>
</table>

When i print **kw in python it returns one value only
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Static table in qweb report? แก้ไขแล้ว
1
พ.ค. 20
7365
0
พ.ค. 20
4701
0
มี.ค. 21
5351
1
มี.ค. 22
4463
1
ต.ค. 20
6030