[FIX] web: report not good when exporting to pdf
Steps to reproduce: 1. Go to Settings 2. In Document Layout 3. Click on Configure Document Layout 4. Preview looks right 5. Click on Download PDF Preview 6. Open the PDF 7. Preview is not right 8. The bottom right table is squished Cause of the issue: Introduced by https://github.com/odoo/odoo/commit/778cc239010f3bb8618824fdaf06cb19922d6498 Fix: Copied report_invoice_document opw-3651311 closes odoo/odoo#150195 X-original-commit: 227c9567845ec9a592e9f265fbfcee537dd17ff5 Signed-off-by: Antoine Demany (ande) <ande@odoo.com>
This commit is contained in:
@@ -187,17 +187,9 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="clearfix">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<p name="payment_term">
|
||||
<span>Payment terms: 30 Days</span>
|
||||
</p>
|
||||
<p>
|
||||
Payment Communication: <b><span>INV/2023/00003</span></b>
|
||||
</p>
|
||||
</div>
|
||||
<div id="total" class="col-6">
|
||||
<div id="right-elements" t-attf-class="#{'col-5' if report_type != 'html' else 'col-12 col-md-5'} ms-5 d-inline-block float-end">
|
||||
<div id="total" class="clearfix row">
|
||||
<div class="ms-auto">
|
||||
<table class="table table-sm table-borderless" style="page-break-inside: avoid; position:relative;">
|
||||
<tbody><tr class="border-black o_subtotal" style="">
|
||||
<td><strong>Untaxed Amount</strong></td>
|
||||
@@ -222,6 +214,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="payment_term">
|
||||
<div class="mb-3">
|
||||
<p name="payment_term">
|
||||
<span>Payment terms: 30 Days</span>
|
||||
</p>
|
||||
<p name="payment_communication">
|
||||
Payment Communication: <b><span>INV/2023/00003</span></b>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user