← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 869991] Re: in send invitation wizard, could not send mail

 

** Attachment added: "survey.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/869991/+attachment/2522857/+files/survey.ogv

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

Title:
  in send invitation wizard, could not send mail

Status in OpenERP Addons (modules):
  New

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)]

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/869991/+subscriptions


References