Cannot create employee.

Bug #713777 reported by Jonathan Liuti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

I'm unable to create a new employee with another user than admin.
I first thought it was related to the read/write access on objects but I tried the following:

Creating a new user manually and assigning all groups --> not working.
Duplicating admin user --> not working

When I try to create a new entry I get the following error :

Traceback (most recent call last): File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/netsvc.py", line 489, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/service/web_services.py", line 599, in dispatch res = fn(db, uid, *params) File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/osv/osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/osv/osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/osv/osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/osv/orm.py", line 973, in default_get defaults[f] = self._defaults[f](self, cr, uid, context) File "/openerp-server/addons/hr/hr.py", line 194, in <lambda> 'address_id': lambda self,cr,uid,c: self.pool.get('res.partner.address').browse(cr, uid, uid, c).partner_id.id File "/home/xxxxx/openerp/openerp-server-6.0.1/bin/osv/orm.py", line 287, in __getattr__ raise AttributeError(e) AttributeError: 'Field partner_id not found in browse_record(res.partner.address, 5)'

My environnement:
Ubuntu server 10.04.
Openerp-server / Gtk and webclient v6.0.1 Stable release.
Only certified modules installed.

Revision history for this message
Brian Taber (btaber) wrote :

I have just experienced very similar problem, very similar setup:
My environnement:
Ubuntu server 10.10
Openerp-server / Gtk and webclient v6.0.1 Stable release.
Only certified modules installed.

[2011-02-05 23:38:06,435][openerp_dcg] WARNING:osv.browse_record.res.partner.address:No field_values found for ids [5] in browse_record(res.partner.address, 5)
[2011-02-05 23:38:06,436][openerp_dcg] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 973, in default_get
    defaults[f] = self._defaults[f](self, cr, uid, context)
  File "/usr/share/pyshared/openerp-server/addons/hr/hr.py", line 194, in <lambda>
    'address_id': lambda self,cr,uid,c: self.pool.get('res.partner.address').browse(cr, uid, uid, c).partner_id.id
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 287, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field partner_id not found in browse_record(res.partner.address, 5)'

I receive this error when going to Human Resources -> Employees -> New. My user account was created by duplicating the admin account. (This was another problem I had, I originally created my user via new button, but was unable to give all permissions, as when editing Access Groups I only could see Administration / Configuration group in group list)

I am however able to duplicate my user for a new account, signed in as my user, and I am able to create via new while in admin account.

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.