openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #11756
[Bug 997613] Re: email server action 'to' field context error
Hi, thanks for your help.
As I said, I try to send automatically emails notifications on tasks
(new task, task changes,task done etc...).
I created a server action : low level objects -> server action -> action
type = email
As I did not know a way to call it directly in project.py, I created an
automated action to call my server action.
Works why I put the email adress explicitly (ex : 'jcharton@xxxxxxxxxx' ) but fails when I put a field reference like object.user_id.user_email:
assert smtp_to_list, "At least one valid recipient address should be specified for outgoing emails (To/Cc/Bcc)"
AssertionError: At least one valid recipient address should be specified for outgoing emails (To/Cc/Bcc)
I tried to correct code (base_action_rule.py fetchmail.py,orm.py...) it
does nothing or I get error message telling me a record has been
suppress or add, object error like subject:subject )
--
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/997613
Title:
email server action 'to' field context error
Status in OpenERP Addons (modules):
Incomplete
Bug description:
Hi.
I'm trying to send emails notifications for my openerp's tasks via automated email+server action (email). Failed on the evaluation of the 'To/Cc...' field.
AssertionError: At least one valid recipient address should be
specified for outgoing emails (To/Cc/Bcc)
I tried to fix base_action_rule.py & fetchmail.py as I found on lp but I faced a new error on orm.py I fixed as I found on lp again...Still not working on my ubuntu 10.04 (works on windows).
I tried to put back everything as it was but I still get the error:
if not getattr(cls, '_original_module', None) and name == parent_model._name:
AttributeError: 'NoneType' object has no attribute '_name'
By the way, it could be nice to be able to choose the smtp server to use with the action.
Could be nice to handle auto task emails like in purchase module (edi export & email).
Email handling in openerp is a mess!
I'll try to track actions in the code to add this but I'm new in openerp...so it will take time...
same for edi handling I want to code it but I first need to well understand way it works.
Thanks for your help.
Jeremie Charton
Société Guyacom
jcharton@xxxxxxxxxx
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/997613/+subscriptions
References