Skip to content

Commit c699389

Browse files
committed
[FIX] account : prevent invoice layout issue
Before this commit, a print invoice that's on 2 pages with a boxed template left 2 vertical lines on the page bottom A negatif margin top in applied that push the table top to the first page Steps to reproduce : - Change the document layout to a boxed one in the Settings - Create products with long descriptions - Create an invoice with the products - Print the invoice (the total should be on the second page) - The vertical lines should be there opw-4841652 closes odoo#215778 Signed-off-by: Ruben Gomes (rugo) <[email protected]>
1 parent 3a49064 commit c699389

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addons/account/views/report_invoice.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
<t t-set="display_discount" t-value="any(l.discount for l in o.invoice_line_ids)"/>
108108
<div class="oe_structure"></div>
109-
<table class="o_has_total_table table o_main_table table-borderless" name="invoice_line_table">
109+
<table class="o_has_total_table table o_main_table table-borderless mb-0" name="invoice_line_table">
110110
<thead>
111111
<tr>
112112
<th name="th_description" class="text-start"><span>Description</span></th>
@@ -181,9 +181,9 @@
181181
</t>
182182
</tbody>
183183
</table>
184-
<div>
184+
<div class="overflow-hidden">
185185
<div id="right-elements" t-attf-class="#{'col-5 mt-5' if report_type == 'pdf' else 'col-12 col-md-5'} ms-5 d-inline-block float-end">
186-
<div id="total" class="clearfix row mt-n3">
186+
<div id="total" class="clearfix row">
187187
<div class="ms-auto">
188188
<table class="o_total_table table table-borderless avoid-page-break-inside">
189189

@@ -236,7 +236,7 @@
236236
<div class="oe_structure"/>
237237
</t>
238238
</div>
239-
<div id="payment_term" class="clearfix">
239+
<div id="payment_term" class="clearfix mt-3">
240240
<div class="justify-text">
241241
<p t-if="not is_html_empty(o.fiscal_position_id.note)" name="note" class="mb-2">
242242
<span t-field="o.fiscal_position_id.note"/>

0 commit comments

Comments
 (0)