summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-09-28 08:56:54 +0200
committerXavier Morel <xmo@openerp.com>2012-09-28 08:56:54 +0200
commitaaff4459c438bdbb4b2d5f62bbd95a155904136c (patch)
treefa03f411d96677e444e0bd02d2f49a531fe156dd /doc/api
parentdef7e61901dafc41cb0b404b1e74275b00deaa1b (diff)
[DOC] fixes and cleanups
bzr revid: xmo@openerp.com-20120928065654-jj3ot17dz8vd3wum
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/user_img_specs.rst25
1 files changed, 20 insertions, 5 deletions
diff --git a/doc/api/user_img_specs.rst b/doc/api/user_img_specs.rst
index a915529accd..c6729eed920 100644
--- a/doc/api/user_img_specs.rst
+++ b/doc/api/user_img_specs.rst
@@ -3,9 +3,24 @@ User avatar
.. versionadded:: 7.0
-This revision adds an avatar for users. This replaces the use of gravatar to emulate avatars, used in views like the tasks kanban view. Two fields have been added to the res.users model:
- - avatar_big, a binary field holding the image. It is base-64 encoded, and PIL-supported. Images stored are resized to 540x450 px, to limitate the binary field size.
- - avatar, a function binary field holding an automatically resized version of the avatar_big field. It is also base-64 encoded, and PIL-supported. Dimensions of the resized avatar are 180x150. This field is used as an inteface to get and set the user avatar.
-When changing the avatar through the avatar function field, the new image is automatically resized to 540x450, and stored in the avatar_big field. This triggers the function field, that will compute a 180x150 resized version of the image.
+This revision adds an avatar for users. This replaces the use of
+gravatar to emulate avatars, used in views like the tasks kanban
+view. Two fields have been added to the res.users model:
-An avatar field has been added to the users form view, as well as in Preferences. When creating a new user, a default avatar is chosen among 6 possible default images.
+* ``avatar_big``, a binary field holding the image. It is base-64
+ encoded, and PIL-supported. Images stored are resized to 540x450 px,
+ to limitate the binary field size.
+
+* ``avatar``, a function binary field holding an automatically resized
+ version of the avatar_big field. It is also base-64 encoded, and
+ PIL-supported. Dimensions of the resized avatar are 180x150. This
+ field is used as an inteface to get and set the user avatar.
+
+When changing the avatar through the avatar function field, the new
+image is automatically resized to 540x450, and stored in the
+avatar_big field. This triggers the function field, that will compute
+a 180x150 resized version of the image.
+
+An avatar field has been added to the users form view, as well as in
+Preferences. When creating a new user, a default avatar is chosen
+among 6 possible default images.