try to create an employee as employee -> bug

Bug #713177 reported by Aline (OpenERP)
38
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

- create a user with groups by default (only partner manager and employee)
- connect you as this user
- go to employee list view
- click new

Traceback (most recent call last):
  File "/home/aline/openerp/trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/aline/openerp/trunk/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 974, in default_get
    defaults[f] = self._defaults[f](self, cr, uid, context)
  File "/home/aline/openerp/trunk/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/aline/openerp/trunk/server/bin/osv/orm.py", line 287, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field partner_id not found in browse_record(res.partner.address, 5)'

Related branches

Changed in openobject-client-web:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
affects: openobject-client-web → openerpgit
affects: openerpgit → openobject-addons
Changed in openobject-addons:
assignee: OpenERP SA's Web Client R&D (openerp-dev-web) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Fixed in trunk addons3 branch,

revision-id: mra@mra-laptop-20110208051951-usjzx6dih5ap9o45

Thank you,
mra

Changed in openobject-addons:
status: In Progress → Fix Released
Revision history for this message
Yusuf Hasanmiyan (yusufhm) wrote :

How do I correct the bug manually please?

Revision history for this message
Arno Peters (awpeters) wrote :

In the bug I reported (a duplicate of this one), I had already attached a patch to correct the problem. Try it out and report here if it works.

The patch:

https://bugs.launchpad.net/openobject-addons/+bug/726720/+attachment/1877179/+files/hr.patch

Kind regards,
Arno

Revision history for this message
Yusuf Hasanmiyan (yusufhm) wrote :

Thanks Arno, it worked!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.