How to add images on a delivery note? I need it to make the picking process more easy.
I know how to add images to products, but I want to see these images on my printed delivery note.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to add images on a delivery note? I need it to make the picking process more easy.
I know how to add images to products, but I want to see these images on my printed delivery note.
[Question is too old but this is just for reference :)]
You can achieve this by adding <img> in report. like
<td height="80" width="80">
<img t-if="move.product_id.image" t-att-src="'data:image/png;base64,%s' % move.product_id.image" width="75" height="75"/>
</td>
Here, you have to manage/add above <td> in both table.
1) <table class="table table-condensed mt48" t-if="not o.pack_operation_ids">...</table>
(Above example will work in this table)
2)<table class="table table-condensed mt48" t-if="o.pack_operation_ids">...</table>
(You need to change 'move' to 'pack_operation')
Enjoy,
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jun 25
|
2641 | ||
|
4
Jul 25
|
2266 | ||
|
0
Aug 24
|
1334 | ||
|
1
Jun 24
|
1922 | ||
|
0
Mar 24
|
1390 |
@Jasper,
I've done this on Quotation/SaleOrders using the two following repositories:
https://github.com/OCA/web/tree/8.0/web_tree_image
https://github.com/OdooCommunityWidgets/web_tree_image_order_line
The module from OCA is a generic module to allow for putting the product image in tree view. The module from OdooCommunityWidgets is the code for putting that image on the quotation/saleorder line in the GUI view.
If you would like to customise the printed views this should also be no problem. I'd recommend looking into Aeroo Reports:
https://www.odoo.com/forum/help-1/question/8-0-how-can-i-install-the-official-aeroo-reports-alistek-for-odoo-version-8-solved-76044
Or the in-built QWeb reporting engine. As customising these reports should not be too difficult with either of those reporting engines. Are you running on the Odoo online version (odoo.com), or your own installation on your own server?