diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-03-30 10:46:12 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-03-30 10:46:12 +0200 |
| commit | 914fab60e30a6fc594cf7a0c348bbb6fbfeeee30 (patch) | |
| tree | d10b04dbe13328edf28272530ca8c6b0ea062723 /addons/google_docs/static | |
| parent | b6bb8bf53333a1ae70aec9c81ce6d977e0df1693 (diff) | |
| parent | fa131c2559416c08f693e689c1776871730d5558 (diff) | |
[MERGE] Merged with branch propagating the use of user avatars instead of gravatars in crm and project. This branch also improve the photo management in hr. This revision modifies the photo for HR employees. Two fields now exist in the hr.employee model:
- photo_big, a binary field holding the image. It is base-64 encoded, and PIL-supported. It is automatically resized as an 540x450 px image.
- photo, a functional binary field holding an automatically resized version of the photo. Dimensions of the resized photo are 180x150. This field is used as an inteface to get and set the employee photo.
When changing the photo through the photo function field, the new image is automatically resized to 540x450, and stored in the photo_big field. This triggers the function field, that will compute a 180x150 resized version of the image.
Employee photo should be used only when dealing with employees, using the photo field. When dealing with users, use the res.users avatar field instead.
bzr revid: tde@openerp.com-20120330084612-1225fmm6bx595mea
Diffstat (limited to 'addons/google_docs/static')
0 files changed, 0 insertions, 0 deletions
