Format correct for sale order report

This commit is contained in:
sonal arora
2020-09-15 19:19:06 +00:00
parent 62fead3ca8
commit 053918fe1a
2 changed files with 13 additions and 13 deletions

View File

@@ -78,7 +78,7 @@
</div> </div>
</div> </div>
</div> </div>
<div style="padding-top:20px;"> <div class="row mt32 mb32">
<div class="col-3" style="font:15px lucida-console,sans-serif !important;"> <div class="col-3" style="font:15px lucida-console,sans-serif !important;">
<strong>Customer Address</strong> <strong>Customer Address</strong>
<br/> <br/>
@@ -94,7 +94,7 @@
<br/> <br/>
<span style="color:gray !important;" t-field="o.partner_id.vat"/> <span style="color:gray !important;" t-field="o.partner_id.vat"/>
<br/> <br/>
</div> </div></div>
<div style="padding-top:20px;"></div> <div style="padding-top:20px;"></div>
<!-- Is there a discount on at least one line? --> <!-- Is there a discount on at least one line? -->
<t t-set="display_discount" t-value="any([l.discount for l in o.invoice_line_ids])"/> <t t-set="display_discount" t-value="any([l.discount for l in o.invoice_line_ids])"/>
@@ -104,20 +104,20 @@
<tr> <tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Description <th style="background-color:#3498DB !important;color:#FFF !important;">Description
</th> </th>
<th class="text-right" <th
style="background-color:#3498DB !important;color:#FFF !important;">Quantity style="background-color:#3498DB !important;color:#FFF !important;">Quantity
</th> </th>
<th class="text-right" <th
style="background-color:#3498DB !important;color:#FFF !important;">Unit Price style="background-color:#3498DB !important;color:#FFF !important;">Unit Price
</th> </th>
<th t-if="display_discount" class="text-right" <th t-if="display_discount"
groups="sale.group_discount_per_so_line" groups="sale.group_discount_per_so_line"
style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%) style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%)
</th> </th>
<th class="text-right" <th
style="background-color:#3498DB !important;color:#FFF !important;">Taxes style="background-color:#3498DB !important;color:#FFF !important;">Taxes
</th> </th>
<th class="text-right" <th
style="background-color:#3498DB !important;color:#FFF !important;">Price style="background-color:#3498DB !important;color:#FFF !important;">Price
</th> </th>
</tr> </tr>
@@ -127,28 +127,28 @@
<td> <td>
<span t-field="l.name"/> <span t-field="l.name"/>
</td> </td>
<td class="text-right"> <td>
<span t-field="l.quantity"/> <span t-field="l.quantity"/>
<span t-field="l.uom_id" groups="product.group_uom"/> <span t-field="l.uom_id" groups="product.group_uom"/>
</td> </td>
<td class="text-right"> <td>
<span t-field="l.price_unit"/> <span t-field="l.price_unit"/>
</td> </td>
<td t-if="display_discount" class="text-right" <td t-if="display_discount"
groups="sale.group_discount_per_so_line"> groups="sale.group_discount_per_so_line">
<span t-field="l.discount"/> <span t-field="l.discount"/>
</td> </td>
<td> <td>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_ids))"/> <span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_ids))"/>
</td> </td>
<td class="text-right"> <td>
<span t-field="l.price_subtotal" <span t-field="l.price_subtotal"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<div> <div>
<div class="col-4 pull-right"> <div class="col-4 pull-right">

View File

@@ -59,7 +59,7 @@
</xpath> </xpath>
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before"> <xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
<t t-set="seq_move" t-value="1"/> <t t-set="seq_move" t-value="1"/>
<td colspan="2"> <td>
<t t-esc="seq_move"></t> <t t-esc="seq_move"></t>
</td> </td>
<t t-set="seq_move" t-value="seq_move+1"/> <t t-set="seq_move" t-value="seq_move+1"/>