Turkesh Patel (openERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-944197-tpa into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-944197-tpa/+merge/102265

                     crm

===================================================

[FIX]: Improved condition in do_action of automated rule.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-944197-tpa/+merge/102265
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-944197-tpa.
=== modified file 'crm/crm_action_rule.py'
--- crm/crm_action_rule.py	2012-03-16 14:42:51 +0000
+++ crm/crm_action_rule.py	2012-04-17 09:35:25 +0000
@@ -101,7 +101,7 @@
                 emails = obj.email_cc.split(",")
                 if  obj.act_email_cc not in emails:# and '<'+str(action.act_email_cc)+">" not in emails:
                     write['email_cc'] = obj.email_cc + ',' + obj.act_email_cc
-            else:
+            elif hasattr(obj, 'act_email_cc'):
                 write['email_cc'] = obj.act_email_cc
 
         # Put state change by rule in communication history

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to