[已解决]odoo10 report
-
我用odoo10的报表,html格式输出的正常,pdf的输出就不正常,截图如下,
代码是如下。什么问题大概?还有就是能不能设置行距啊?<template id="upi.report_upi_template_quote"> <t t-call="report.html_container"> <t t-foreach="docs" t-as="o"> <t t-call="report.internal_layout"> <div class="page" style="margin-top:20px;"> <div class="row"> <strong>Quote:</strong> <span t-field="o.quote_number"/> </div> <div class="row"> <strong>Description:</strong> <span t-field="o.description"/> </div> </div> </t> </t> <table class="table table-condensed"> <thead> <tr> <th colspan="3">Part No.</th> <th colspan="4">Description</th> <th>Qty</th> <th>Unit</th> <th colspan="2">Currency</th> <th>Amount</th> </tr> </thead> <tbody> <t t-foreach="docs.template_line" t-as="l"> <tr> <td colspan="3"><span t-field="l.part_number.display_name"/></td> <td colspan="4"><span t-field="l.description"/></td> <td><span t-field="l.qty"/></td> <td><span t-field="l.unit.name"/></td> <td colspan="2"><span t-field="l.supplier_currency.name"/></td> <td><span t-field="l.demand"/></td> </tr> </t> </tbody> </table> </t> </template>
pdf打印的内容:
hmtl打印的内容正常: