[DOC] Updated doc to match last revision.

bzr revid: tde@openerp.com-20120323091508-2m01y3hj9vw49ofk
This commit is contained in:
Thibault Delavallée 2012-03-23 10:15:08 +01:00
parent d48b3bdb6b
commit d7be1e92d0
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ 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, a binary field holding the image
- avatar_mini, a binary field holding an automatically resized version of the avatar. Dimensions of the resized avatar are 180x150.
User avatar has to be used everywhere an image depicting users is likely to be used, by using the avatar_mini field.
- avatar_stored, a binary field holding the image. It is base-64 encoded, and PIL-supported.
- avatar, a function binary field holding an automatically resized version of the avatar. Dimensions of the resized avatar are 180x150. This field is used as an inteface to get and set the user avatar. When changing this field in a view, the new image is automatically resized, and stored in the avatar_stored field. Note that the value is stored on another field, because otherwise it would imply to write on the function field, which currently using OpenERP 6.1 can lead to issues.
User avatar has to be used everywhere an image depicting users is likely to be used, by using the avatar field.
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.