diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-08-27 11:17:34 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-08-28 08:51:15 +0000 |
| commit | b36b000f5ca5387b4370663995b2ad0d34896da6 (patch) | |
| tree | 67a1ea36595a6a9c8ecac3be8228bd07d44bea23 /doc/reference/javascript_reference.rst | |
| parent | 324919bcf0090963fdb320a91face8ab0e906930 (diff) | |
[FIX] website_sale: fix access right issue when paying
PURPOSE
Test frontend and UI tools of eLearning.
SPECIFICATIONS
Commit fe518f1feaabc0101e201b2542acf18deca9693f introduced a search on sale order model in checkout
process. However this may fail as access rights are not always granted
* portal users can see orders linked to their company;
* salesman and a lot of specific groups (accounting, ...) can see their own
orders, all orders, or depending on some condition;
* BUT standard users (employee only for example) cannot see any sale order.
Indeed they do not even have right to read, meaning a search fail. Let us
sudo the search as this is contained in a sub method used to fetch some
data.
LINKS
Task ID 1937768
closes odoo/odoo#36166
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
