diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-07-20 17:36:16 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-07-22 13:51:34 +0000 |
| commit | 3922182c97c5f2a889b31c1ebe90630d6838349f (patch) | |
| tree | 09569a9f6d1a7e10af09c72216aa91d3d4f33e2a /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 5cb25d43eb0938257b41eeeddb42ace6dda9869c (diff) | |
[FIX] portal: hide public user avatar in chatter
On a chatter portal, when the user is using access token to display
record and is not connected, the message will be posted as the record
partner_id.
But then the preview of avatar in the composer is wrong: you see a
broken image (because you don't have access to "public user" partner
avatar) and when you post it anyway you see the avatar of the record
partner and not public user.
In this commit, if we are seeing the record with token and are logged
out as public user, we will not show the avatar in composer.
(note: before 13.0, the "public user" partner avatar was working)
opw-2276498
closes #54720
closes odoo/odoo#54782
X-original-commit: 97473f6a25336e8994730e7722cffb6fd0dbc6d7
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
