diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-05-22 14:26:05 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-05-25 08:11:36 +0000 |
| commit | ad5ac19218b4c529c651da951acdb93e1ac1227d (patch) | |
| tree | 442f8923b35966ed359a06aec7b9f1ae9ede5c8a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 835dac49c3985bfb0d19c60c85695982d6f822fc (diff) | |
[FIX] stock_account: return with limited access rights
- Create a SO, add a product with automated valuation
- Validate that SO
- Validate the picking
- Generate the invoice and validate
- As a limited user with only 'User' Inventory access rights, return the
picking
- Validate the return
An `AccessError` is raised on `stock.valuation.layer`.
A regular user should be able to make a return, but not access the
accounting information. Therefore, use `sudo` where appropriate.
opw-2256074
closes odoo/odoo#51764
X-original-commit: c819a7e2fccbecce344ac74a33f0653eb8ba1027
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
