in send invitation wizard, could not send mail

Bug #869991 reported by Hardik Ansodariya (OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 1

Bug Description

Tools > Surveys > Define Surverys > surveys > select any record > in form view > send invitation(wizard) > send

in survey_send_invitation.py file res.user's object try to search address_id in res.users and address_id field is not exist in res.users due to this reason it generates following Traceback

Traceback (most recent call last):
  File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/han/rdtool/addons/trunk/survey/wizard/survey_send_invitation.py", line 164, in action_send
    user_id = user_ref.search(cr, uid, [('address_id', '=', addr.id)])
  File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 2205, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 4421, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 4270, in _where_calc
    e = expression.expression(cr, user, domain, self, context)
  File "/home/han/rdtool/server/trunk/openerp/osv/expression.py", line 358, in __init__
    self.parse(cr, uid, distribute_not(normalize(exp)), table, context)
  File "/home/han/rdtool/server/trunk/openerp/osv/expression.py", line 454, in parse
    raise ValueError("Invalid field %r in domain expression %r" % (left, exp))
ValueError: Invalid field 'address_id' in domain expression ['&', ('active', '=', 1), ('address_id', '=', 13)]

Revision history for this message
Hardik Ansodariya (OpenERP) (han-tinyerp) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

Hello,
                   We have fixed the reported issue and Committed it to :https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-869991-kjo .It will be merge soon with trunk addons.

Revision No: 5323
Thank You.

Revision history for this message
Michael (OpenERP) (mva-openerp) wrote :

fix revision5669

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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