Comment 14 for bug 1259913

Revision history for this message
Mariusz Mizgier (mariusz-mizgier) wrote :

User which is not a superuser tries to create a new note - no matter if the stage for the note is defined or not. After trying to add from kanban view, new window is opened with Create:undefined - after trying to save he is receiving a message which was posted earlier. Full error stack:
2014-02-06 13:00:33,621 9626 WARNING currenda openerp.osv.orm: Access Denied by record rules for operation: write, uid: 119, model: note.note
2014-02-06 13:00:33,622 9626 ERROR currenda openerp.netsvc: Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Note, Operation: write)
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 144, in wrapper
    raise except_osv(inst.name, inst.value)
except_osv: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Note, Operation: write)')

I've tried removing checking rule for note.note at write - that gives Operation: create. After removing validation on create, it is coming back to Operation: read.