Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
How to display records side by side in Qweb report
I wrote this Qweb report to display student IDs for printing:
==============================================================
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_students">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<table width="40%">
<tr>
<td>
<img t-att-src="'data:image/png;base64,%s' % o.student_image" style="max-height:4cm; max-width:4cm;"/>
</td>
<td>
<h5 t-field="o.name"/>
<h5 t-field="o.student_number"/>
</td>
</tr>
</table>
</t>
</t>
</template>
</data>
</openerp>
=========================================================
Now when I try to print, the records are stacked on top of each other. How can I change the Qweb report so that it displays two records per row?
Thanks in advance
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 12/2/14, 2:15 PM |
Seen: 847 times |
Last updated: 3/16/15, 8:10 AM |
Can someone help... I am sure it's a very easy task for pros here.