lp:~openerp-commiter/openobject-client/client-image-widget
* 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_
- Tree.many2one_image and Form.many2one
<field name='img_field_id' widget=
if "fieldname" is not provided it will take the first binary field of the many2one.
Pictures of those new widgets in action:
* http://
* http://
* http://
A test module is also available:
* http://
Todo:
- Use "img_field" instead of "fieldname"
but it require to add an attribute in server/
<rng:optional>
- Get this branch:
- bzr branch lp:~openerp-commiter/openobject-client/client-image-widget
Branch merges
- Christophe Simonis (OpenERP): Needs Fixing
- Stephane Wirtel (OpenERP): Pending requested
-
Diff: 723 lines (+583/-8) (has conflicts)8 files modifiedbin/widget/model/field.py (+1/-0)
bin/widget/view/common_gtk.py (+193/-0)
bin/widget/view/form_gtk/image.py (+18/-2)
bin/widget/view/form_gtk/many2one_image.py (+202/-0)
bin/widget/view/form_gtk/parser.py (+5/-5)
bin/widget/view/tree_gtk/image.py (+64/-0)
bin/widget/view/tree_gtk/many2one_image.py (+81/-0)
bin/widget/view/tree_gtk/parser.py (+19/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:openobject-client