|
|
@ -43,10 +43,14 @@ class product_images(osv.osv): |
|
|
|
_columns = { |
|
|
|
'name':fields.char('Image Title', size=100, required=True), |
|
|
|
'link':fields.boolean('Link?', help="Images can be linked from files on your file system or remote (Preferred)"), |
|
|
|
'image':fields.binary('Image', filters='*.png,*.jpeg,*.gif'), |
|
|
|
'image':fields.binary('Image', filters='*.png,*.jpg,*.gif'), |
|
|
|
'filename':fields.char('File Location', size=250), |
|
|
|
'preview':fields.function(_get_image, type="binary", method=True), |
|
|
|
'comments':fields.text('Comments'), |
|
|
|
'product_id':fields.many2one('product.product', 'Product') |
|
|
|
} |
|
|
|
|
|
|
|
_defaults = { |
|
|
|
'link': lambda *a: True, |
|
|
|
} |
|
|
|
product_images() |