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

<tbody>

<th colspan="3">

<strong>

<span t-field="o.material_ids.color_id" />

<span t-field="o.material_ids.print_side" />

</strong>

<br />

<t t-if="not o.material_ids.papercut_id.cut_image">

<span t-field="o.material_ids.papercut_id.cut_image"

t-field-options='{"widget": "image"}'>

</span>

</t>

<br />

<span t-field="o.material_ids.formula" />

</th>

</tbody>


My code is not working, how to cheking?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can hide a field in the report in if there is no value in it, for that you can do it like this

<t t-if="employee.address_home_id">   
    <span t-field="employee.address_home_id.name"/>
</t>

Here the value will be displayed in the report if there is a value in field employee.address_home_id.name , else it will not get printed

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Thanks, its work thank you

ผู้เขียน

I have another question

"i change position right in page" here is my code

<tr>

<th colspan="3" class="text-left" align="right" style="width: 30%;"></th>

<th class="text-right" align="right" style="width: 30%;">

<br />

<strong>Хариуцсан менежер:........................................

</strong>

<br />

<strong>

Захиалга авсан:

<span t-field="o.user_id" />

</strong>

</th>

</tr>

Thanks for helping

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 18
2862
0
ก.ค. 17
4715
0
พ.ค. 17
2577
3
มิ.ย. 23
10500
1
พ.ย. 23
9345