
Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn
由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解
本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!
开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号
如果您登录系统碰到问题,请在微信公众号留言:
[已解决]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打印的内容正常:
-
@hui 我刚做一个报表,然后打印直接下载,过来学习学习
-
@水在时间之下
这个只是一部分,而且还有问题。
-
如果是打印报表格式为
PDF
的,PDF
的内容必须包含在<div class="page">
。
上面的错误是<div class="page">
写错位置了。