[trunk/7.0][addons] access denied when a subsidiary company's user tries to create a reordering rule
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello,
Steps to reproduce:
- connect to runbot.openerp.com
- set admin user with technical features & multi companies
- set configuration warehouse on "Manage multiple locations and warehouses"
- create one user related to Birmingham shop, with warehouse manager role.
- create one user related to Chicago shop, with warehouse manager role.
Connect with one of these 2 users,
Go to Warehouse / Configuration / Reordering rules
try to create a reordering rule : oups, an "access denied popup" explains :
"Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: Warehouse, Operation: read)"
---------
It looks like OE giving directly one warehouse by default that some users can't read.
Romain
Related branches
- Alexandre Fayolle - camptocamp: Needs Fixing (code review, test)
-
Diff: 45 lines (+12/-5)2 files modifiedprocurement/procurement.py (+3/-5)
stock/stock.py (+9/-0)
- Vinay Rana (OpenERP) (community): Disapprove
- Mohammed Shekha(Open ERP) (community): Disapprove
- Alexandre Fayolle - camptocamp (community): Needs Fixing (code review, test)
- Martin Trigaux (OpenERP): Pending requested
- Naresh(OpenERP): Pending requested
-
Diff: 45 lines (+12/-5)2 files modifiedprocurement/procurement.py (+3/-5)
stock/stock.py (+9/-0)
- Martin Trigaux (OpenERP) (community): Approve
- Naresh(OpenERP): Pending requested
-
Diff: 31 lines (+5/-5)1 file modifiedprocurement/procurement.py (+5/-5)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → Fix Committed |
no longer affects: | ocb-addons/7.0 |
no longer affects: | ocb-addons |
Hello,
Perhaps it's not the cleanest fix, but it resolves the problem.
Romain