← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 689576] Re: [PS] No possible to define the "Subject" of a mail in the automated action

 

Ok tested, seems to work now. Thanks !

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

Title:
  [PS] No possible to define the "Subject" of a mail in the automated
  action

Status in OpenERP Modules (addons):
  Confirmed
Status in OpenERP Server:
  Invalid

Bug description:
  * Create a new "Automated action" with an email action

  => it is not possible to provide a "Subject" for the email to be sent
  automatically

  Traceback (most recent call last):
    File "/home/atul/workspace/trunk/trunk-server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/atul/workspace/trunk/trunk-server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/atul/workspace/trunk/trunk-server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/atul/workspace/trunk-dev-addons1/crm/crm_opportunity.py", line 103, in case_mark_lost
      res = self._case_close_generic(cr, uid, ids, self._find_lost_stage, *args)
    File "/home/atul/workspace/trunk-dev-addons1/crm/crm_opportunity.py", line 57, in _case_close_generic
      res = super(crm_opportunity, self).case_close(cr, uid, ids, *args)
    File "/home/atul/workspace/trunk-dev-addons1/crm/crm_lead.py", line 225, in case_close
      self.write(cr, uid, ids, {'date_closed': time.strftime('%Y-%m-%d %H:%M:%S')})
    File "/home/atul/workspace/trunk-dev-addons1/base_action_rule/base_action_rule.py", line 185, in make_call_old
      self.pre_action(cr, uid, ids, model, context=context)
    File "/home/atul/workspace/trunk-dev-addons1/base_action_rule/base_action_rule.py", line 165, in pre_action
      self._action(cr, uid, [rule_id], obj.browse(cr, uid, ids, context=context), context=context)
    File "/home/atul/workspace/trunk-dev-addons1/base_action_rule/base_action_rule.py", line 457, in _action
      self.do_action(cr, uid, action, model_obj, obj, context)
    File "/home/atul/workspace/trunk-dev-addons1/crm/crm_action_rule.py", line 110, in do_action
      res = super(base_action_rule, self).do_action(cr, uid, action, model_obj, obj, context=context)
    File "/home/atul/workspace/trunk-dev-addons1/base_action_rule/base_action_rule.py", line 419, in do_action
      emails.append(safe_eval(action.act_email_to, {}, locals_for_emails))
    File "/home/atul/workspace/trunk/trunk-server/bin/tools/safe_eval.py", line 281, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "/home/atul/workspace/trunk/trunk-server/bin/tools/safe_eval.py", line 102, in test_expr
      code_obj = compile(expr, "", mode)
    File "<string>", line 1
       atp@xxxxxxxxxxx
          ^
   SyntaxError: invalid syntax

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


References