How To Set Qweb Report Table Height If Use T-Foreach Loop in Odoo12 Odoo
How To Set Qweb Report Table Height If Use T-Foreach Loop in Odoo12 Odoo
com/fr_FR/forum/aide-1/how-to-set-
Aide
Dismiss
Aller à : Question
Recherche…
0
1 sur 7
How to set qweb report table height if use "t-foreach" loop in odoo12 | Odoo https://www.odoo.com/fr_FR/forum/aide-1/how-to-set-
27 mars 2020
<div style="height:20mm;background-color:yellow;">
Commenter Partager
1 Commentaires
6 Réponses
2
Niyas Raphy Meilleure réponse
27 mars 2020
Hi,
See this sample inside the existing odoo code, in hr_attendance
module, the template for printing the employee badge,
2 sur 7
How to set qweb report table height if use "t-foreach" loop in odoo12 | Odoo https://www.odoo.com/fr_FR/forum/aide-1/how-to-set-
3 sur 7
How to set qweb report table height if use "t-foreach" loop in odoo12 | Odoo https://www.odoo.com/fr_FR/forum/aide-1/how-to-set-
<tr><td><img alt="barcode"
t-if="employee.barcode" t-att-src="'/report/barcode/?type=%s&
amp;value=%s&width=%s&height=%s' % ('Code128',
employee.barcode, 600, 120)" style="max-height:50pt;max-
width:100%;" align="center"/></td></tr>
</table>
</td>
</table>
</div>
</t>
Thanks
Commentaires Partager
2 Commentaires
sample code
<table width="100%" border="0" style="height:153mm;
border:1px solid black;width:100%;">
<tr style="font-family:Times New Roman;border:1px solid
black;padding: 3px;" width="100%">
4 sur 7
How to set qweb report table height if use "t-foreach" loop in odoo12 | Odoo https://www.odoo.com/fr_FR/forum/aide-1/how-to-set-
<b>S No</b>
</td>
<td valign="middle" width="39%" align="center" style="font-
family:Times New Roman;border:1px solid black;padding: 3px;">
<div>
<div>
<span style="padding-top:12px;padding-left:10px;float:
left;font-family:Times New Roman;font-size:11px;">
<b> Description</b>
</span>
<span style="padding-top:12px;padding-left:10px;float:
right;font-family:Times New Roman;font-size:11px;">
<b>. </b>
</span>
<div style="clear:both;"></div>
</div>
</div>
</td>
</tr>
<tr t-foreach="o.invoice_line_ids" t-as="l" style="font-
family:Times New Roman;border:1px solid black;padding:
5 sur 7
How to set qweb report table height if use "t-foreach" loop in odoo12 | Odoo https://www.odoo.com/fr_FR/forum/aide-1/how-to-set-
<b>
<t t-esc="l_index+1"/>
</b>
</td>
<td align="left" style="font-family:Times New Roman;border:1px
solid black;padding: 3px;">
<b>
<t t-esc="l.product_id.name"/>
</b>
</td>
</tr>
</table>
4
MUHAMMAD Imran
27 mars 2020
Commentaires Partager
6 sur 7
How to set qweb report table height if use "t-foreach" loop in odoo12 | Odoo https://www.odoo.com/fr_FR/forum/aide-1/how-to-set-
Commentaires Partager
1 Commentaires
7 sur 7