Somesh Khare has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-267641-skh into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #912841 in OpenERP Addons: "[6.0] crm/crm_action_rule - mail action 
doesn't send mails to user and watchers"
  https://bugs.launchpad.net/openobject-addons/+bug/912841

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-267641-skh/+merge/88484

Hello,

[Fix] : This branch fixes the issue in the crm_action_rule.py, When you check 
the box for the "Add watchers" and provided watchers emails to it, Now change 
the state according to the Automated action on the object( Ex: Crm HelpDesk- 
Change the state from Draft to Open) , It generates a Error. The proposed merge 
resolve the issue.

Thanks,
Somesh Khare
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-267641-skh/+merge/88484
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-267641-skh.
=== modified file 'crm/crm_action_rule.py'
--- crm/crm_action_rule.py	2011-01-14 00:11:01 +0000
+++ crm/crm_action_rule.py	2012-01-13 12:09:26 +0000
@@ -117,10 +117,10 @@
         if hasattr(obj, 'email_cc') and action.act_email_cc:
             if '@' in (obj.email_cc or ''):
                 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
+                if  action.act_email_cc not in emails:# and '<'+str(action.act_email_cc)+">" not in emails:
+                    write['email_cc'] = obj.email_cc+','+action.act_email_cc
             else:
-                write['email_cc'] = obj.act_email_cc
+                write['email_cc'] = action.act_email_cc
 
         # Put state change by rule in communication history
         if hasattr(obj, 'state') and action.act_state:

_______________________________________________
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