← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 690621] Re: [V6.trunk] HR Department: error message when trying to add employee in an empty DB

 

Hello Bernard Renier ,

I tried at my end but I could not meet the error.

Will you please update the code?

Would you please provide more information if problem still persists ?

Thank you.

** Changed in: openobject-addons
       Status: New => Invalid

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/690621

Title:
  [V6.trunk] HR Department: error message when trying to add employee in an empty DB

Status in OpenObject Addons Modules:
  Invalid

Bug description:
  Hi,

I was accessing the hr.department table via GTK with an empty DB. As the DB was empty, list of department was empty, so i clicked on the form button and then clicked on the "+" icon that allows to add employees in the sub-view (without entering any data on department header). Just after clicking on "+" I had the following error:

Environment Information : 
System : Linux-2.6.35-23-generic-i686-with-Ubuntu-10.10-maverick
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.10
Release:	10.10
Codename:	maverick
Operating System Release : 2.6.35-23-generic
Operating System Version : #41-Ubuntu SMP Wed Nov 24 10:18:49 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1721 nch@xxxxxxxxxxx-20101215063439-hn8odj5ln8v8ynn2
Traceback (most recent call last):
  File "/home/bernard/trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/bernard/trunk/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/bernard/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/bernard/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/bernard/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
AttributeError: 'hr.employee' object has no attribute 'onchange_address_id'





References