Catch empty partner, fix table header fit content

This commit is contained in:
Matthias Brück 2024-05-30 17:36:40 +10:00
parent ca3f461621
commit e4eea6db2e
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,5 @@
td.fit { td.fit,
th.fit {
width: 0; width: 0;
white-space: nowrap; white-space: nowrap;
min-width: fit-content; min-width: fit-content;

View file

@ -8,16 +8,16 @@
<div class="scissors"/> <div class="scissors"/>
<div class="page" style="page-break-inside: avoid;"> <div class="page" style="page-break-inside: avoid;">
<div class="row mt32"> <div class="row mt32">
<div class="col-auto" name="div_name"> <div class="col-auto" name="div_name" t-if="partner">
<strong><span t-field="partner.name"/></strong> <strong><span t-field="partner.name"/></strong>
</div> </div>
</div> </div>
<table class="table table-sm" name="stock_move_table"> <table class="table table-sm" name="stock_move_table">
<thead> <thead>
<tr> <tr>
<th name="th_sm_product_qty"><strong>Batch Size</strong></th> <th class="fit" name="th_sm_product_qty"><strong>Batch Size</strong></th>
<th name="th_sm_product"><strong>Product</strong></th> <th name="th_sm_product"><strong>Product</strong></th>
<th name="th_sm_ordered"><strong>Ordered</strong></th> <th class="fit" name="th_sm_ordered"><strong>Ordered</strong></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>