diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-02-11 15:29:45 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-02-12 12:10:08 +0100 |
| commit | 26f1d75606340a04670a9875ac52b3a194d65c55 (patch) | |
| tree | a857366fc3028dfe9cf83be3ed225d06781eeb0b /addons/web/static/src/js/framework/session_instance.js | |
| parent | 24315867bfba9fcbb18387f9ec32c4e66ecacee3 (diff) | |
[FIX] mail: followers: can't access res.partner case
When the user can't read the model res.partner, former code tried to determine
whether or not the user was follower of the document. This was wrong for three
reasons.
First, it performed an RPC to get the partner_id of the current user, but this
info is already stored in the session so the RPC was useless.
Second, the partner_id isn't helpful to know if the user is a follower because
everything we have is the follower_ids, which aren't ids of the res_partner
model, but ids of the mail_follower model (compare apples and oranges...).
Third, we anyway didn't use that information at all as the button indicating
whether or not the user is a follower wasn't displayed.
This rev. simply removes that useless RPC and only displays the count of
followers as previously.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
