lp:~openerp-commiter/openobject-client/client-image-widget

Created by Nicolas DS and last modified

* Add widget for:
- Tree.image (and by the way to Form.many2many because M2M is using a treeview)
- Tree.many2one_image
- Form.many2one_image

* It contains an image caching (set to 120 seconds) to avoid slowing client.

* Support more image type. (.ani, .ico, .jpe, .jpeg, .pcx, .pnm, .ras, .tga, .xbm)

Usage:
- Tree.image
 <field name='img_field_name' widget='image' img_width='100' img_height='33' \>
- Tree.many2one_image and Form.many2one
 <field name='img_field_id' widget='many2one_image' img_width='100' img_height='33' fieldname='the_img_field_of_the_m2o' \>

if "fieldname" is not provided it will take the first binary field of the many2one.

Pictures of those new widgets in action:
* http://zyphos.be/openobject/img_widget_tree.jpg (Tree.image)
* http://zyphos.be/openobject/M2O_img_widget_tree.jpg (Tree.many2one_image)
* http://zyphos.be/openobject/M2O_img_widget_form.jpg (Form.many2one_image)

A test module is also available:
* http://zyphos.be/openobject/img_widget_test.zip

Todo:
- Use "img_field" instead of "fieldname"
but it require to add an attribute in server/bin/addons/base/rng/view.rng@ line 290
<rng:optional><rng:attribute name="img_field"/></rng:optional>

Get this branch:
bzr branch lp:~openerp-commiter/openobject-client/client-image-widget
Members of OpenERP Committers can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
OpenERP Committers
Project:
Odoo GTK Client (MOVED TO GITHUB)
Status:
Mature

Recent revisions

1219. By Nicolas DS

[IMP] form.M2O_image code clean up

1218. By Nicolas DS

[IMP] Added clear button for the form.M2O_image widget

1217. By Nicolas DS

[REF] Form.M2O_image widget

1216. By Nicolas DS

[FIX] image-widget: Typos + Making code more robust

1215. By Nicolas DS

[IMP] get_pixbuf and get_thumbnail support multi id query

1214. By Nicolas DS

[MERGE] from official trunk GTK client

1213. By Nicolas DS

[FIX] Bug due to model field change

1212. By Nicolas DS

[FIX] M2O image find and get

1211. By Nicolas DS

[FIX] Case when M2O relation is empty

1210. By Nicolas DS

[MERGE] From trunk

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:openobject-client
This branch contains Public information 
Everyone can see this information.