[imp] remove zeros and make table width fit
This commit is contained in:
parent
1b383c6d14
commit
758501a645
1 changed files with 6 additions and 6 deletions
|
|
@ -15,15 +15,14 @@
|
||||||
t-value="[partners[i:i+pagination] for i in range(0, len(partners), pagination)]"
|
t-value="[partners[i:i+pagination] for i in range(0, len(partners), pagination)]"
|
||||||
/>
|
/>
|
||||||
<t t-foreach="partner_chunks" t-as="partner_chunk">
|
<t t-foreach="partner_chunks" t-as="partner_chunk">
|
||||||
<div class="page" style="page-break-inside: avoid;">
|
<div style="page-break-inside: avoid;">
|
||||||
<table class="table table-sm" name="nfu_ekg_packing_list">
|
<table class="table table-bordered table-sm w-auto" name="nfu_ekg_packing_list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="160"><strong>Product</strong></th>
|
<th width="160"><strong>Product</strong></th>
|
||||||
<t t-foreach="partner_chunk" t-as="partner">
|
<t t-foreach="partner_chunk" t-as="partner">
|
||||||
<th width="80"><strong t-esc="partner.name"/></th>
|
<th width="80"><strong t-esc="partner.name"/></th>
|
||||||
</t>
|
</t>
|
||||||
<th/>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<t t-foreach="products" t-as="product">
|
<t t-foreach="products" t-as="product">
|
||||||
|
|
@ -31,12 +30,13 @@
|
||||||
<td><strong t-esc="product.name"/></td>
|
<td><strong t-esc="product.name"/></td>
|
||||||
<t t-foreach="partner_chunk" t-as="partner">
|
<t t-foreach="partner_chunk" t-as="partner">
|
||||||
<td>
|
<td>
|
||||||
<span
|
<t
|
||||||
t-esc="sum(lines.filtered(lambda p:p.picking_id.partner_id.id == partner.id).filtered(lambda p:p.product_id.id == product.id).mapped('product_uom_qty'))"
|
t-set="qty"
|
||||||
|
t-value="sum(lines.filtered(lambda p:p.picking_id.partner_id.id == partner.id).filtered(lambda p:p.product_id.id == product.id).mapped('product_uom_qty'))"
|
||||||
/>
|
/>
|
||||||
|
<t t-if="qty" t-esc="qty"/>
|
||||||
</td>
|
</td>
|
||||||
</t>
|
</t>
|
||||||
<td/>
|
|
||||||
</tr>
|
</tr>
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue