콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2660 화면

How am I supposed to print a text.field type(called Remarks) just right beside the values of one2many.field type, should it be executed within the same loop or to write it as two different tables?  If so the latter one, How could I possibly merge the rows(

tag) of second tag equal to the number of lines in one2many field of the first

tag?

So, I tried using the rowspan attribute but unfortunately it did not work. 

class="row">
class="col">

class="table table-bordered" style="width:700pt;border:1px solid black;font-size:18px;margin-top:-1.5%">
style="font-size:16px;border:1px solid black;">





t-set="counter" t-value="1"/>
t-foreach="o.move_ids_without_package" t-as="doc" style="font-size:10px;border:1px solid black;">






S.NoProduct DescriptionQuantityRemarks
style="text-align:center;">t-esc="counter"/>t-set="counter" t-value="counter+1"/>style="padding-left:10px;">t-field="doc.product_id.name"/>style="padding-left:10px;">t-field="doc.quantity_done"/>


class="col">

class="table table-bordered table-inverse" style="width:300pt;position:relative; left:-415px; top:30px;border:1px solid black;font-size:18px;margin-top:-1.5%">
style="font-size:16px;border:1px solid black;">



t-if="o.remarks">



Remarks
rowspan="4">
t-esc="o.remarks"/>





















S.No Product Description Quantity Remarks



















아바타
취소
베스트 답변

its work for me

<tbody>
<t t-if="o.move_ids_without_package">
<t t-foreach="o.move_ids_without_package" t-as="doc">
<tr style=" height: 20px; ">
<td style="text-align:center;padding: 10px;font-weight: 600;">
<t t-esc="doc_index +1">t>
td>
<
td style="text-align:center;padding: 10px;font-weight: 600;">
<t t-esc="doc['remarks']"/>
td>
<
td style="text-align:center;padding: 10px;font-weight: 600;">
<t t-esc="doc['product_id']"/>
td>

tr>
t>
t>
tbody>



아바타
취소
관련 게시물 답글 화면 활동
0
5월 22
1550
2
11월 22
3035
1
12월 23
2504
0
9월 18
3684
3
6월 23
3544