invoice report

This commit is contained in:
sonal arora
2020-09-16 00:10:14 +05:30
parent 9ecbdcd489
commit c138def11f
2 changed files with 17 additions and 13 deletions

View File

@@ -104,17 +104,21 @@
<tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Description
</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Quantity
<th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Quantity
</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Unit Price
<th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Unit Price
</th>
<th t-if="display_discount"
<th t-if="display_discount" class="text-right"
groups="sale.group_discount_per_so_line"
style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%)
</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Taxes
<th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Taxes
</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Price
<th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Price
</th>
</tr>
</thead>
@@ -123,21 +127,21 @@
<td>
<span t-field="l.name"/>
</td>
<td>
<td class="text-right">
<span t-field="l.quantity"/>
<span t-field="l.uom_id" groups="product.group_uom"/>
</td>
<td>
<td class="text-right">
<span t-field="l.price_unit"/>
</td>
<td t-if="display_discount"
<td t-if="display_discount" class="text-right"
groups="sale.group_discount_per_so_line">
<span t-field="l.discount"/>
</td>
<td>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_ids))"/>
</td>
<td>
<td class="text-right">
<span t-field="l.price_subtotal"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td>

View File

@@ -54,16 +54,16 @@
<span t-esc="o.note"/>
</xpath>
<xpath expr="//table[@class='table table-sm']/thead/tr/th[1]" position="before">
<th style="background-color:#3498DB !important;color:#FFF">S.No</th>
<th style="background-color:#3498DB !important;color:#FFF">Code</th>
<th class="text-right" style="background-color:#3498DB !important;color:#FFF">S.No</th>
<th class="text-right" style="background-color:#3498DB !important;color:#FFF">Code</th>
</xpath>
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
<t t-set="seq_move" t-value="1"/>
<td colspan="2">
<td colspan="2" class="text-right">
<t t-esc="seq_move"></t>
</td>
<t t-set="seq_move" t-value="seq_move+1"/>
<td><span t-esc="l.product_id.default_code"/></td>
<td class="text-right"><span t-esc="l.product_id.default_code"/></td>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
<p>E &amp; OE</p><br/>