summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-03-30 12:44:53 +0200
committerThibault Delavallée <tde@openerp.com>2012-03-30 12:44:53 +0200
commit07b943bbdf48ac69dd69d1549b95a3da0d2889ec (patch)
tree46e67c28f85a4c8c59201bc3561e431b8704f9d8 /doc/api
parentc2e1b6a3840ca1bcad5b77279a7d4dc2d6ef42c1 (diff)
parentb6bb8bf53333a1ae70aec9c81ce6d977e0df1693 (diff)
[MERGE] Merged with main server
bzr revid: tde@openerp.com-20120330104453-ceto9uwwb0n206jk
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/user_img_specs.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/user_img_specs.rst b/doc/api/user_img_specs.rst
new file mode 100644
index 00000000000..4ee97999aca
--- /dev/null
+++ b/doc/api/user_img_specs.rst
@@ -0,0 +1,9 @@
+User avatar
+===========
+
+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.
+
+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.