Physician access rights...

Asked by Terah on 2014-05-20

Hello,

I have successfully installed OpenERP 7 on an Ubuntu 12.04 box, and installed oemedical+data using bzr, and even successfully updated it using bzr pull.

I proceeded to create a physician and created a logon ID for them. The problem is when I login as the doctor, I cannot access patient records or even create new records. I get the error:

"Access Denied

Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.

(Document model: oemedical.patient.colposcopy_history)"

And in the logs:

WARNING testdb openerp.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: oemedical.patient.colposcopy_history

I have been fighting with this for a week now. How do I get around this?

Thanks

TK

Question information

Language:
English Edit question
Status:
Answered
For:
oemedical Edit question
Assignee:
No assignee Edit question
Last query:
2014-05-20
Last reply:
2015-05-26
Terah (kterah) said : #1

Hello, any ideas on my issue above?

Thanks

TK

Terah (kterah) said : #2

I have removed and reinstalled the both openerp and omedical several times now. Every time I login as the physician, or anybody other than admin, I cannot edit customer records, I get the above error. This is a show stopper. I was not expecting to have to go into the code/database in order to be able to use oemedical. Been stuck for 2 weeks now. About to throw in the towel...

TK

Terah (kterah) said : #3

This is the error log on a brand new install. This happens when I try to create a patient logged in as a physician:

2014-06-06 06:00:00,377 30646 WARNING testdb openerp.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: oemedical.patient.colposcopy_history
2014-06-06 06:00:00,378 30646 ERROR testdb openerp.netsvc: Access Denied
Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.

(Document model: oemedical.patient.colposcopy_history)
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 3679, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 3800, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/opt/openerp/v7/server/openerp/osv/fields.py", line 538, in get
    ids2 = obj.pool.get(self._obj).search(cr, user, domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 2372, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 4929, in _search
    self.check_access_rights(cr, access_rights_uid or user, 'read')
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 3954, in check_access_rights
    return self.pool.get('ir.model.access').check(cr, uid, self._name, operation, raise_exception)
  File "/opt/openerp/v7/server/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/opt/openerp/v7/server/openerp/tools/cache.py", line 46, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/opt/openerp/v7/server/openerp/addons/base/ir/ir_model.py", line 747, in check
    raise except_orm(_('Access Denied'), msg % msg_params)
except_osv: (u'Access Denied', u'Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.\n\n(Document model: oemedical.patient.colposcopy_history)')

Thanks

TK

Terah (kterah) said : #4

Hello,

I still cannot figure out how to create a non-admin login that can create/view patient records. I keep getting the permissions errors above. Any advice?

Thanks

TK

Adrian Langenhoven (adrian-7) said : #5

I found the solution to this problem. The ACL for users other than administrator does not have access to read , write and create.

go to SETTINGS, SECURITY and ACCESS CONTROL LIST

check for the item in the error message , and give it employee access with read, write and create. This will need be done for every object that pops up with a access denied error after the first one.

hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Terah for more information if necessary.

To post a message you must log in.