diff options
| author | Alexandre Kühn <aku@odoo.com> | 2019-04-12 15:14:01 +0000 |
|---|---|---|
| committer | Olivier Dony <odo@odoo.com> | 2019-05-08 10:35:37 +0000 |
| commit | 893e07e5906f4b5025ac7aa6b84f1d3cace811f8 (patch) | |
| tree | e89232bffbd1429675c0ff11e995b5549a2b09ae /addons/web/static/src/js/views/basic | |
| parent | 9e067d7d9d7877a9925e627e418fc4a8ab3b93df (diff) | |
[IMP] im_livechat,web: use nicer placeholders for livechat
In the context of a livechat session, a placeholder that looks like a
person is better than a generic "missing picture" one, when the user has
no public avatar.
In order to allow a different placeholder without exposing a public
placeholder parameter, a separate route is introduced for the
purpose of displaying user avatars:
/web/partner_image/<id>/<field>/<model>
and can be simplified to:
/web/partner_image/<id> for loading a partner avatar (`image_small`).
The common part of the /web/image route was moved into a helper
function that is not directly exposed.
Task-ID 1924666
Closes #32664
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
