Odoo QWeb报表呈现为PDF格式时出现问题-无法获取
在将QWeb报告呈现为PDF时很难解决我的问题。使用/report/html样式很好 我需要把税务发票推到最右边。下面是从PDF呈现的 在/report/html中,它工作正常 使用此样式:Odoo QWeb报表呈现为PDF格式时出现问题-无法获取,odoo,qweb,Odoo,Qweb,在将QWeb报告呈现为PDF时很难解决我的问题。使用/report/html样式很好 我需要把税务发票推到最右边。下面是从PDF呈现的 在/report/html中,它工作正常 使用此样式:style=“宽度:自动;右边距:0px;左边距:自动;”在div内 <div class="row"> <div> <table cl
style=“宽度:自动;右边距:0px;左边距:自动;”
在div内
<div class="row">
<div>
<table class="table table-sm o_main_table table-bordered" border="1">
<thead>
<tr>
<th class="text-center" colspan="2"><span>CUSTOMER</span></th>
</tr>
<tr>
<th class="text-left"><span>SHIP TO:</span></th>
<th class="text-left"><span>BILL TO:</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
<tr t-att-class="'font-weight-bold o_line_section'">
<td class="text-left"><span t-field="doc.partner_shipping_id.name" t-options="{'widget': 'text'}" /> <span t-field="doc.partner_shipping_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /></td>
<td class="text-left"><span t-field="doc.partner_id.name" t-options="{'widget': 'text'}" /> <span t-field="doc.partner_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /></td>
</tr>
</tbody>
</table>
</div>
<div style="width: auto; margin-right: 0px; margin-left: auto;">
<table class="table table-sm o_main_table table-bordered" border="1" style="width: 100%">
<thead>
<tr>
<th class="text-center" colspan="2">
<span>TAX INVOICE #</span>
</th>
</tr>
</thead>
<tbody>
<tr t-att-class="'font-weight-bold o_line_section text-center'">
<td colspan="2"><h3 style="color: red;"><strong><span t-field="doc.name" t-options="{'widget': 'text'}"/></strong></h3></td>
</tr>
</tbody>
</table>
</div>
</div>
顾客
运船到:
条例草案修订如下:
税务发票#
改用浮动法。将包含税务发票的第二个表(div)的float设置为right。它会起作用的