bzr revid: apa@tinyerp.com-20110921070603-dfwguxt8ztb01mnt
This commit is contained in:
Amit (OpenERP) 2011-09-21 12:36:03 +05:30
parent 79ab7da24b
commit 0dac48c84a
2 changed files with 6 additions and 1 deletions

View File

@ -466,7 +466,7 @@ class product_product(osv.osv):
'price_extra': lambda *a: 0.0,
'price_margin': lambda *a: 1.0,
'color': 0,
'product_image':_get_photo,
# 'product_image':_get_photo,
}
_name = "product.product"

View File

@ -233,7 +233,12 @@
<table class="oe_kanban_table">
<tr>
<td valign="top" width="22">
<t t-if="record.product_image.raw_value">
<img t-att-src="'data:image/png;base64,'+record.product_image.raw_value" width='48' height='48'/>
</t>
<t t-if="!record.product_image.raw_value">
<img src="/web/static/src/img/product_default.png"/>
</t>
</td>
<td>
<div class="oe_kanban_title2">