diff options
| author | Thibault Francois <tfr@openerp.com> | 2021-02-26 14:24:06 +0000 |
|---|---|---|
| committer | Thibault Francois <tfr@openerp.com> | 2021-02-26 14:44:24 +0000 |
| commit | 7fe9012301f606e153ad2ad04c392aa193c182f3 (patch) | |
| tree | 6ae478a87b1a7f8cd8b2f75b96c9a027aaadf4fd /doc/python3.rst | |
| parent | fe7718d02f7539959616b0e6f56d4354c768339b (diff) | |
[FIX] calendar: Fix access right issue on env.companies
Context
-------
in the module website_calendar, the controller create
an event with alarm with the Public user and the company of the public
user
and set partner_ids that may belong to a different company
Issue
-----
The company of the user that create the event remains in the context
and _notify_next_alarm check for each user which event should be notify
using with user of the partner that may be notified and check the access
rules to filter the event the partner should actually see.
The check of the acces rules need env.companies that remains the company
of the user that create the event which the current user may not see
which trigger the following error.
"Access to unauthorized or invalid companies."
Solution
--------
Wipe the company in the context when calling get_next_notif
closes odoo/odoo#66933
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/python3.rst')
0 files changed, 0 insertions, 0 deletions
