Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Could you help us to insert picture in our PDF invoice? [Closed]

By
Pascal Tremblay
on 4/18/15, 9:44 AM 439 views

The Question has been closed for reason: not a real question

by
Pascal Tremblay
on 04/18/2015 09:46:08

Hello guys, 

We have a picture for each line in our sale order document (PDF or HTML).

But for our invoices, it still have a problem... No way to see pictures for each line/product...


Here are our code :


<table class="table table-condensed">

<thead>

<tr>

<th> Picture</th>

<th>Name</th>

<th>Description</th>

<th>Quantity</th>

<th class="text-right">Unit price</th>

<th class="text-right" groups="sale.group_discount_per_so_line">Discount (%)</th>

<th class="text-right">Taxes</th>

<th class="text-right">Amount</th>

</tr>

</thead>

<tbody class="invoice_tbody">

<tr t-foreach="o.invoice_line" t-as="l">

<td> <span t-field="l.product_id.name"/>

<span t-field="l.product_id.code"/>

<span t-field="l.product_id.image_variant"/>

<span t-field="l.product_id.image_small" t-field-options="{"widget": "image", "class": "img-rounded"}"/>

</td>

<td>

<span t-field="l.product_id.name"/>

<span t-field="l.product_id.code"/>

<span t-field="l.product_id.image_variant"/>

</td>

<td>

<span t-field="l.name"/>

</td>

<td>

<span t-field="l.quantity"/>

<span t-field="l.uos_id" groups="product.group_uom"/>

</td>

<td class="text-right">

<span t-field="l.price_unit"/>

</td>

<td groups="sale.group_discount_per_so_line">

<span t-field="l.discount"/>

</td>

<td class="text-right">

<span t-esc="', '.join(map(lambda x: x.name, l.invoice_line_tax_id))"/>

</td>

<td class="text-right">

<span t-field="l.price_subtotal" t-field-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>

</td>

</tr>

</tbody>

</table>

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/18/15, 9:44 AM
Seen: 439 times
Last updated: 4/18/15, 9:46 AM