invoice report

This commit is contained in:
sonal arora
2020-09-15 23:58:31 +05:30
parent 4e429bef38
commit 9ecbdcd489
2 changed files with 18 additions and 18 deletions

View File

@@ -104,21 +104,17 @@
<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>
</thead> </thead>
@@ -127,21 +123,21 @@
<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>

View File

@@ -30,12 +30,12 @@
</div> </div>
<div class="col-4"> <div class="col-4">
<span t-if="o.type == 'out_invoice'"> <span t-if="o.type == 'out_invoice'">
<div class="text-right"><strong>D.O.NOS</strong><br/></div> <div><strong>D.O.NOS</strong><br/></div>
<div class="text-right"><strong>M.R.V NO.</strong><br/></div> <div><strong>M.R.V NO.</strong><br/></div>
</span> </span>
<span t-if="o.type == 'out_refund'"> <span t-if="o.type == 'out_refund'">
<div class="text-right"><strong>Our D.O.NOS</strong><br/></div> <div><strong>Our D.O.NOS</strong><br/></div>
<div class="text-right"><strong>Our M.R.V NO.</strong><br/></div> <div><strong>Our M.R.V NO.</strong><br/></div>
</span> </span>
</div> </div>
</div> </div>
@@ -58,7 +58,11 @@
<th style="background-color:#3498DB !important;color:#FFF">Code</th> <th style="background-color:#3498DB !important;color:#FFF">Code</th>
</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">
<td><span t-esc="i"/></td> <t t-set="seq_move" t-value="1"/>
<td colspan="2">
<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><span t-esc="l.product_id.default_code"/></td>
</xpath> </xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after"> <xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">