Wrong default address of employee

Bug #753133 reported by 开阖软件 Jeff Wang
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP Publisher's Warranty Team

Bug Description

OpenERP V6.0.1 and V6.0.2
login as a user not admin
when Create employee, get following error:

Traceback (most recent call last): File "netsvc.pyo", line 489, in dispatch File "service\web_services.pyo", line 599, in dispatch File "osv\osv.pyo", line 122, in wrapper File "osv\osv.pyo", line 176, in execute File "osv\osv.pyo", line 167, in execute_cr File "osv\orm.pyo", line 973, in default_get File "d:\OpenERP 6.0\Server\addons\hr\hr.py", line 194, in <lambda> File "osv\orm.pyo", line 287, in __getattr__ AttributeError: 'Field partner_id not found in browse_record(res.partner.address, 4)'

read the source and found this :
'address_id': lambda self,cr,uid,c: self.pool.get('res.partner.address').browse(cr, uid, uid, c).partner_id.id

what is the logic you were trying to implement?

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
milestone: none → 6.0.3
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks Jeff,
It has been fixed by revision 4529 <email address hidden>.
Thanks Tejas for the fix.

Changed in openobject-addons:
status: In Progress → Fix Released
Revision history for this message
Amit Dodiya (OpenERP) (ado-openerp) wrote :

Hello Olivier Laurent,
Greetings.

This bug has been fixed in the given revision. You just have need to update the code.

http://bazaar.launchpad.net/~openerp/openobject-addons/6.0/revision/4529

Thanks.

Revision history for this message
Nathan (nathan-bowden-kiwi) wrote :

Amit, is this released in 6.0.2?

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Nathan,

This is now released in 6.0.3 for sure.

Thanks.

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.