openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #04277
[Bug 909816] Re: Automated Actions don't email when no "Email From:" is provided
The error is because contents of the field is evaluated as an expression.
Int's not very intuitive, but you need to enclose the e-mail address between apostrophes to evaluate it as a string:
Instead of me@xxxxxxxx type 'me@xxxxxxxx' .
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/909816
Title:
Automated Actions don't email when no "Email From:" is provided
Status in OpenERP Addons (modules):
New
Bug description:
Creating an Automated Action to e-mail someone when a Project Task is
created, the e-mail is only sent if you set the "Email From" field,
which is not mandatory.
I believe that the problem is on base_action_rule.py, at the end of method do_action() there is an "if" clause preventing the e-mail to be sent:
if email_froms:
self.email_send(cr, uid, obj, emails, action.act_mail_body, emailfrom=email_froms[0])
Please note that if you try the same procedure on the Project Issue
model, the email is correctly sent, since the do_action() on the
crm_base_rule.py does not have this problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/909816/+subscriptions
References