Physician access rights...
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.
And in the logs:
WARNING testdb openerp.
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.
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.
Traceback (most recent call last):
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
result = self._read_flat(cr, user, select, fields, context, load)
File "/opt/openerp/
res2 = self._columns[
File "/opt/openerp/
ids2 = obj.pool.
File "/opt/openerp/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/opt/openerp/
self.
File "/opt/openerp/
return self.pool.
File "/opt/openerp/
r = self.lookup(self2, cr, *args)
File "/opt/openerp/
value = d[key] = self.method(self2, cr, *args)
File "/opt/openerp/
raise except_
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.
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.