diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-04-14 12:55:49 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-04-14 15:12:44 +0000 |
| commit | 3101feb4941f86cbcf85451d9e3cfbf5c2fc340c (patch) | |
| tree | a30a7ea98ba995050850317520fdb7c3f5b362d4 /addons/web/static/src/js/views/basic | |
| parent | 7076b4f4d0d933d93b24e8e4c7cf21ef0b0008e5 (diff) | |
[FIX] stock: bypass permission check after settings change
Install Accounting(account_accountant), Inventory (stock)
1. Create a new user [DEMO] with the next access:
- Accounting: Advisor
- Administration: Settings
2. With the user [DEMO] , go to Accounting>Configuration>Settings
and change any value.
3. Try to save the settings.
Access error will occur "Sorry, you are not allowed to modify documents
of type 'Picking Type' (stock.picking.type)..."
This occur because when stock is installed an override in 'execute' make
the backend check for multi locations, packaging or tracking settings
and activate show_operation on stock.picking.type causing the access
error for unprivileged users
Calling the write with sudo solve the issue
opw-2233193
closes odoo/odoo#49555
X-original-commit: f560a9966dfbbacb259f0de74437743d1385d8a6
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
