From 42e23fd7592ce164d6a32f8427cf56ddc481b962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 4 May 2012 09:38:32 +0200 Subject: [PATCH] [MV] Moved font_style from API to revisions. bzr revid: tde@openerp.com-20120504073832-xmp4dyus3pre44tb --- doc/index.rst.inc | 2 +- doc/{api => revisions}/font_style.rst | 0 doc/revisions/user_img_specs.rst | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) rename doc/{api => revisions}/font_style.rst (100%) diff --git a/doc/index.rst.inc b/doc/index.rst.inc index b4a7fe57b90..1da3d55e6ae 100644 --- a/doc/index.rst.inc +++ b/doc/index.rst.inc @@ -29,4 +29,4 @@ Main revisions and new features revisions/user_img_specs revisions/need_action_specs - api/font_style + revisions/font_style diff --git a/doc/api/font_style.rst b/doc/revisions/font_style.rst similarity index 100% rename from doc/api/font_style.rst rename to doc/revisions/font_style.rst diff --git a/doc/revisions/user_img_specs.rst b/doc/revisions/user_img_specs.rst index 4ee97999aca..3be2ee76d17 100644 --- a/doc/revisions/user_img_specs.rst +++ b/doc/revisions/user_img_specs.rst @@ -1,9 +1,13 @@ 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. 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.