[FIX] sale,purchase: fix report pdf borders
Since BS5 integration in v16.0, the pdf of the sale and purchase report have changed. Borders would be present in the body of the report and the total detail. Came back to v15 display by using the table-borderless class on those elements. closes odoo/odoo#117492 X-original-commit: 8dd6927ca6195f9972f6f444395765aafca1b593 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table table-sm o_main_table mt-4">
|
||||
<table class="table table-sm o_main_table table-borderless mt-4">
|
||||
<thead style="display: table-row-group">
|
||||
<tr>
|
||||
<th name="th_description"><strong>Description</strong></th>
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
<div id="total" class="row justify-content-end">
|
||||
<div class="col-4">
|
||||
<table class="table table-sm">
|
||||
<table class="table table-sm table-borderless">
|
||||
<t t-set="tax_totals" t-value="o.tax_totals"/>
|
||||
<t t-call="purchase.document_tax_totals"/>
|
||||
</table>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<t t-set="lines_to_report" t-value="doc._get_order_lines_to_report()"/>
|
||||
<t t-set="display_discount" t-value="any(l.discount for l in lines_to_report)"/>
|
||||
|
||||
<table class="table table-sm o_main_table mt-4">
|
||||
<table class="table table-sm o_main_table table-borderless mt-4">
|
||||
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
|
||||
<thead style="display: table-row-group">
|
||||
<tr>
|
||||
@@ -149,7 +149,7 @@
|
||||
<div class="clearfix" name="so_total_summary">
|
||||
<div id="total" class="row" name="total">
|
||||
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
|
||||
<table class="table table-sm">
|
||||
<table class="table table-sm table-borderless">
|
||||
<!-- Tax totals -->
|
||||
<t t-set="tax_totals" t-value="doc.tax_totals"/>
|
||||
<t t-call="sale.document_tax_totals"/>
|
||||
|
||||
Reference in New Issue
Block a user