[base_calendar] 'unicode' object has no attribute 'user_id' in do_accept method

Bug #541801 reported by Sebastien LANGE - http://www.Syleam.fr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
Trunk
Fix Released
High
Rucha (Open ERP)

Bug Description

If accept in metting attandance, we have this traceback :
Traceback (most recent call last):
  File "/home/oerp/openerp/trunk_20100316/server/bin/netsvc.py", line 370, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/oerp/openerp/trunk_20100316/server/bin/service/web_services.py", line 587, in dispatch
    res = fn(db, uid, *params)
  File "/home/oerp/openerp/trunk_20100316/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/oerp/openerp/trunk_20100316/server/bin/osv/osv.py", line 120, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/oerp/openerp/trunk_20100316/server/bin/osv/osv.py", line 110, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/oerp/openerp/trunk/addons/base_calendar/base_calendar.py", line 486, in do_accept
    if event_ref.user_id.id != user[0]:
AttributeError: 'unicode' object has no attribute 'user_id'

Please find the patch and try before apply.

Related branches

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Hi all,

How can I reproduce the bug ?

Thanks

Changed in openobject-addons:
status: New → Incomplete
importance: Undecided → High
assignee: nobody → Stephane (Open ERP) (stephane-openerp)
milestone: none → 5.2
Changed in openobject-addons:
status: Incomplete → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed into https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-dev-addons2 branch by revision <email address hidden>.
It will be merged on lead trunk.
Thanks.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

I attach the patch

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

This patch doesn't apply in addons.
I'm trying with addons2 and it's ok.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Thanks, but addons2 will be merged in trunk asap.

Thank you for your feedback

Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hello,
The changes are applied in trunk-addons:
Revno: 3271
Revision ID: <email address hidden>
Thanks

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.