warehouse manager group has insufficient access to stock.location.route

Bug #1269050 reported by Alexandre Fayolle - camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP new WMS
Fix Released
High
Cedric Snauwaert (OpenERP)

Bug Description

create a user account belonging to group warehouse manager

with this account it is not possible to edit the configuration of a warehouse:

2014-01-14 16:01:02,786 9687 ERROR test_trunk openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 321, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 194, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/service/model.py", line 112, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 189, in checked_call
    return self.func(*a, **kw)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/webclient/addons/web/controllers/main.py", line 1115, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/webclient/addons/web/controllers/main.py", line 1107, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/addons/mrp/stock.py", line 239, in write
    return super(stock_warehouse, self).write(cr, uid, ids, vals, context=None)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/addons/stock/stock.py", line 2814, in write
    self.change_route(cr, uid, ids, warehouse, vals.get('reception_steps', False), vals.get('delivery_steps', False), context=context_with_inactive)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/addons/stock/stock.py", line 2585, in change_route
    route_obj.write(cr, uid, warehouse.delivery_route_id.id, {'name': self._format_routename(cr, uid, warehouse, route_name, context=context)}, context=context)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line 4179, in write
    self.check_access_rights(cr, user, 'write')
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line 3944, in check_access_rights
    return self.pool.get('ir.model.access').check(cr, uid, self._name, operation, raise_exception)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/tools/cache.py", line 46, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/addons/base/ir/ir_model.py", line 740, in check
    raise except_orm(_('Access Denied'), msg % msg_params)
except_orm: (u'Access Denied', u'Sorry, you are not allowed to modify this document. Please contact your system administrator if you think this is an error.\n\n(Document model: stock.location.route)')

Related branches

summary: - warehouse manager group has insufficient access to stock.location.route)
+ warehouse manager group has insufficient access to stock.location.route
qdp (OpenERP) (qdp)
Changed in openerp-trunk-wms:
status: New → Confirmed
qdp (OpenERP) (qdp)
Changed in openerp-trunk-wms:
importance: Undecided → High
Changed in openerp-trunk-wms:
assignee: nobody → Cedric Snauwaert (OpenERP) (csn-openerp)
Changed in openerp-trunk-wms:
status: Confirmed → Fix Committed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

fix released in revision 9509.

thanks guys

Changed in openerp-trunk-wms:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.