Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

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
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 20
7303
0
mei 20
4644
0
mrt. 21
5272
1
mrt. 22
4416
1
okt. 20
5951