← Back to team overview

openerp-india team mailing list archive

[Bug 1156215] Re: Permission error on notes when creating user

 

fixed by 9513 chs@xxxxxxxxxxx-20131009162920-lg56wwmtg8qm1kuf

@rha your patch is not correct as it copy the stages of the currently
connected user instead of the ones specified in data.

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1156215

Title:
  Permission error on notes when creating user

Status in OpenERP Community Backports (Addons):
  Fix Released
Status in OpenERP Community Backports (Addons) 7.0 series:
  Fix Released
Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  I'm just getting started with OpenERP, so forgive me if I'm missing
  something obvious.

  Some time ago I ran into this bug: https://bugs.launchpad.net/openobject-server/+bug/1021378 concerning access rights issues when creating a user.
  After applying the patch, I could still not create a new user. I thought I still had the same issue, but on closer inspection I found that the error now concerned a different object: Notes instead of Users.

  So, just as with the other bug, the issue is I can only create new
  users as the default admin user, not as any other user that has
  administrative permissions.

  At first I got this exception:
  2013-03-17 12:52:14,878 5200 ERROR segrey openerp.netsvc: Access Denied
  The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

  (Document type: Note Stage, Operation: read)
  Traceback (most recent call last):
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\netsvc.py", line 293, in dispatch_rpc
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 188, in execute_kw
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 144, in wrapper
  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 Stage, Operation: read)')

  I modified osv.py to not eat-up the exception. Then I got this:
  Server Traceback (most recent call last):
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\web\session.py", line 90, in send
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\netsvc.py", line 293, in dispatch_rpc
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 189, in execute_kw
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 131, in wrapper
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 198, in execute
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 186, in execute_cr
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\crm\crm_meeting.py", line 76, in create
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\auth_signup\res_users.py", line 274, in create
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\note\note.py", line 194, in create
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 5023, in copy
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 4914, in copy_data
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 3604, in read
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 3659, in _read_flat
    File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 3862, in _check_record_rules_result_count
  except_orm: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Note Stage, Operation: read)')

  So as far as I understand there seems to be an issue copying notes to
  the new user. But my knowledge does not stretch far enough to
  interpret this further.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1156215/+subscriptions